Skip to content

Commit

Permalink
[cancelable] the defaultvalue for canceling is now true
Browse files Browse the repository at this point in the history
  • Loading branch information
plusgut committed May 25, 2018
1 parent 7b9be3b commit 065b45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EnzymeAdapterPlusnew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class PlusnewAdapter extends EnzymeAdapter {
return rootInstance;
},
simulateEvent(instance: Instance, type: string) {
const event = new Event(type, { bubbles: true });
const event = new Event(type, { bubbles: true, cancelable: true });
getDomElement(instance).dispatchEvent(event);
},
};
Expand Down

0 comments on commit 065b45e

Please sign in to comment.