mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: overzealous click handler on flag list row
This commit is contained in:
@@ -9,7 +9,11 @@ define('forum/flags/list', ['components', 'Chart'], function (components, Chart)
|
||||
Flags.handleBulkActions();
|
||||
|
||||
components.get('flags/list')
|
||||
.on('click', '[data-flag-id]', function () {
|
||||
.on('click', '[data-flag-id]', function (e) {
|
||||
if (['BUTTON', 'A'].includes(e.target.nodeName)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var flagId = this.getAttribute('data-flag-id');
|
||||
ajaxify.go('flags/' + flagId);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user