Skip to content

Conversation

Veszter-007
Copy link

No description provided.

@radimvaculik
Copy link
Member

@Veszter-007 Please, fix indent.

Confirm is valid for the given grid, not global.
@Veszter-007
Copy link
Author

@radimvaculik Thanks for the feedback, I've fixed the indentation!

@radimvaculik radimvaculik requested review from Copilot and f3l1x August 27, 2025 18:36
@radimvaculik
Copy link
Member

LGTM.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the confirm plugin to validate and handle confirmation events only for elements within the specific datagrid instance, rather than handling all global confirmation events.

  • Replaces bind(datagrid) with call(datagrid, confirmEl, e) for direct click event handlers
  • Adds a containment check for AJAX interaction events to ensure they belong to the current datagrid
  • Updates parameter passing to use the actual confirmation element instead of the event target

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@radimvaculik
Copy link
Member

@f3l1x Please, check it.

Hi there! Apologies for the delay in getting back to this — I’ve been a bit tied up lately. Thanks a lot for the suggested change. I’ve reviewed it and it looks great to me. I’ve committed the update and tested it on my end, and everything seems to be working fine. Let me know if there’s anything else I should adjust!

Co-authored-by: Copilot <[email protected]>
@radimvaculik
Copy link
Member

@f3l1x Ping. LGTM. Please, merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants