This commit is contained in:
Mario Lubenka 2025-05-01 12:35:38 -07:00 committed by GitHub
commit ce6d098948
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -418,6 +418,9 @@ class Dropdown extends BaseComponent {
(SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE)[0] ||
SelectorEngine.next(this, SELECTOR_DATA_TOGGLE)[0] ||
SelectorEngine.findOne(SELECTOR_DATA_TOGGLE, event.delegateTarget.parentNode))
if (!getToggleButton) {
return
}
const instance = Dropdown.getOrCreateInstance(getToggleButton)