mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Per review, simplify disabling of default action
Turns out you can just call `event.preventDefault()` on the action and there is no need actually use hotkeys to do that.
This commit is contained in:
@@ -9,14 +9,6 @@ describe("TagListInputController", () => {
|
||||
beforeAll(() => {
|
||||
const application = Application.start();
|
||||
application.register("tag-list-input-component--tag-list-input", tag_list_input_controller);
|
||||
|
||||
// Mock hotkeys.js
|
||||
const mockedHotkeys = jest.fn();
|
||||
global.hotkeys = mockedHotkeys;
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
delete global.hotkeys;
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user