We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f4d383 commit 2bdbb0aCopy full SHA for 2bdbb0a
js/src/dropdown.js
@@ -418,6 +418,9 @@ class Dropdown extends BaseComponent {
418
(SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE)[0] ||
419
SelectorEngine.next(this, SELECTOR_DATA_TOGGLE)[0] ||
420
SelectorEngine.findOne(SELECTOR_DATA_TOGGLE, event.delegateTarget.parentNode))
421
+ if (!getToggleButton) {
422
+ return
423
+ }
424
425
const instance = Dropdown.getOrCreateInstance(getToggleButton)
426
0 commit comments