[Firefox] Invoke preventDefault on drop

...such that Firefox does not try to treat drop as a new URL
to navigate to. Addresses #688 and #527
This commit is contained in:
Victor Woeltjen
2016-03-31 10:34:24 -07:00
parent cbea842c8b
commit 254a944d7a
4 changed files with 13 additions and 1 deletions

View File

@@ -194,6 +194,11 @@ define(
);
});
it("invokes preventDefault on drop", function () {
callbacks.drop(mockEvent);
expect(mockEvent.preventDefault).toHaveBeenCalled();
});
});
}
);
);