diff options
Diffstat (limited to 'web_src/js/modules/fomantic/dropdown.js')
-rw-r--r-- | web_src/js/modules/fomantic/dropdown.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/modules/fomantic/dropdown.js b/web_src/js/modules/fomantic/dropdown.js index 7302078dbd..97aabb44b6 100644 --- a/web_src/js/modules/fomantic/dropdown.js +++ b/web_src/js/modules/fomantic/dropdown.js @@ -199,7 +199,7 @@ function attachDomEvents($dropdown, $focusable, $menu) { if (!$item) $item = $menu.find('> .item.selected'); // when dropdown filters items by input, there is no "value", so query the "selected" item // if the selected item is clickable, then trigger the click event. // we can not click any item without check, because Fomantic code might also handle the Enter event. that would result in double click. - if ($item && ($item.is('a') || $item.hasClass('js-aria-clickable'))) $item[0].click(); + if ($item && ($item[0].matches('a') || $item.hasClass('js-aria-clickable'))) $item[0].click(); } }); |