Skip to content

Commit

Permalink
Don't follow click on row when event target is contained by ignored e…
Browse files Browse the repository at this point in the history
…lements
  • Loading branch information
spohlenz committed Jan 9, 2025
1 parent 2179318 commit 9a7d4cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/bundle/trestle/admin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/js/controllers/follow_url_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ export default class extends ApplicationController {
}

ignoreElement (node) {
return node.matches('a, input, button, .select-row')
return node.closest('a, input, button, .select-row')
}
}

0 comments on commit 9a7d4cf

Please sign in to comment.