mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 20:18:23 -05:00
DEV: Use native element.closest() (#17482)
This commit is contained in:
@@ -70,7 +70,7 @@ createWidget("discourse-poll-option", {
|
||||
},
|
||||
|
||||
click(e) {
|
||||
if ($(e.target).closest("a").length === 0) {
|
||||
if (!e.target.closest("a")) {
|
||||
this.sendWidgetAction("toggleOption", this.attrs.option);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user