Skip to content

Commit

Permalink
Try inlining an arrow function for opening the listbox
Browse files Browse the repository at this point in the history
  • Loading branch information
jscholes committed Nov 22, 2020
1 parent 894ebf4 commit 4be6c3c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/combobox-select-only/data/js/openListbox.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// sets focus on and expands the Combobox
testPageDocument.querySelector('[role="combobox"]').focus();
window.setTimeout(onSelectReady, 500);

function onSelectReady() {
console.log('opening listbox');
window.selectController.updateMenuState(true);
}
window.setTimeout(onSelectReady, () => {
console.log('Opening listbox');
window.selectController.updateMenuState(true)
}, 500);

0 comments on commit 4be6c3c

Please sign in to comment.