Skip to content

Commit 1a71dbf

Browse files
Remove jQuery class from the reaction selector (#30138)
- Switched from jQuery class functions to plain JavaScript `classList` - Tested the reaction selector and it works as before Signed-off-by: Yarden Shoham <[email protected]> Co-authored-by: Giteabot <[email protected]>
1 parent 34acd8e commit 1a71dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/comp/ReactionSelector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function initCompReactionSelector($parent) {
55
$parent.find(`.select-reaction .item.reaction, .comment-reaction-button`).on('click', async function (e) {
66
e.preventDefault();
77

8-
if ($(this).hasClass('disabled')) return;
8+
if (this.classList.contains('disabled')) return;
99

1010
const actionUrl = this.closest('[data-action-url]')?.getAttribute('data-action-url');
1111
const reactionContent = this.getAttribute('data-reaction-content');

0 commit comments

Comments
 (0)