Skip to content

Commit

Permalink
check groupAction data attribute in event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nidjo17 committed Sep 20, 2023
1 parent 193d185 commit 1c36c3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/plugins/features/confirm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export class ConfirmPlugin implements DatagridPlugin {
const message = el.getAttribute(ConfirmAttribute)!;
if (!message) return;

if (el.getAttribute('data-group-action') === null) {
return;
}

if (!this.confirm(message)) {
e.stopPropagation();
e.preventDefault();
Expand Down

0 comments on commit 1c36c3a

Please sign in to comment.