Skip to content

Commit 66f7d47

Browse files
Remove jQuery class from the comment context menu (#30179)
- Switched from jQuery class functions to plain JavaScript - Tested the comment context menu functionality and it works as before --------- Signed-off-by: Yarden Shoham <[email protected]> Co-authored-by: silverwind <[email protected]>
1 parent b6a3cd4 commit 66f7d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/modules/fomantic/dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function attachDomEvents(dropdown, focusable, menu) {
207207
if (!$item) $item = $(menu).find('> .item.selected'); // when dropdown filters items by input, there is no "value", so query the "selected" item
208208
// if the selected item is clickable, then trigger the click event.
209209
// we can not click any item without check, because Fomantic code might also handle the Enter event. that would result in double click.
210-
if ($item && ($item[0].matches('a') || $item.hasClass('js-aria-clickable'))) $item[0].click();
210+
if ($item?.[0]?.matches('a, .js-aria-clickable')) $item[0].click();
211211
}
212212
});
213213

0 commit comments

Comments
 (0)