Skip to content

Commit

Permalink
fix: overzealous click handler on flag list row
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Aug 21, 2020
1 parent f425cec commit 7a5daff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion public/src/client/flags/list.js
Expand Up @@ -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);
});
Expand Down

0 comments on commit 7a5daff

Please sign in to comment.