Skip to content

Commit f5911ef

Browse files
muandgraham
andcommitted
Ensure event is cancelable like in real life
Co-authored-by: David Graham <[email protected]>
1 parent acb509f commit f5911ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function press(input, key, ctrlKey) {
33
}
44

55
function click(element) {
6-
element.dispatchEvent(new MouseEvent('click', {bubbles: true}))
6+
element.dispatchEvent(new MouseEvent('click', {bubbles: true, cancelable: true}))
77
}
88

99
describe('combobox-nav', function() {

0 commit comments

Comments
 (0)