loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit 66f7d47d2c702bab4ca9bcedc1c0ba9ddfa49a17)

authored by

Yarden Shoham
silverwind
and committed by
Gergely Nagy
f8a332c2 6925c0ee

+1 -1
+1 -1
web_src/js/modules/fomantic/dropdown.js
··· 207 207 if (!$item) $item = $(menu).find('> .item.selected'); // when dropdown filters items by input, there is no "value", so query the "selected" item 208 208 // if the selected item is clickable, then trigger the click event. 209 209 // 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(); 211 211 } 212 212 }); 213 213