Skip to content

Commit 983ed32

Browse files
committed
make sure to uninstall hotkey handler on all elements
1 parent 52ea704 commit 983ed32

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎test/test.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ describe('hotkey', function() {
2222
})
2323

2424
afterEach(function() {
25-
hotkey.uninstall(document.querySelector('[data-hotkey]'))
25+
for (const button of document.querySelectorAll('[data-hotkey]')) {
26+
hotkey.uninstall(button)
27+
}
2628
document.body.innerHTML = ''
2729
buttonsClicked = []
2830
})

0 commit comments

Comments
 (0)