Forbid jQuery is
and fix issues (#30016)
Tested all functionality. --------- Co-authored-by: Yarden Shoham <git@yardenshoham.com> (cherry picked from commit 0a2f973de9b681a472c96bdfcd945978e88458d8)
This commit is contained in:
parent
c5eae64e06
commit
e28f4328b3
5 changed files with 9 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue