Skip to content

[6.x] Prevent opening set picker when max_sets limit has been reached#14290

Merged
jackmcdade merged 1 commit into6.xfrom
replicator-set-picker
Mar 18, 2026
Merged

[6.x] Prevent opening set picker when max_sets limit has been reached#14290
jackmcdade merged 1 commit into6.xfrom
replicator-set-picker

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

This pull request fixes an issue where users could bypass the Replicator's set limit by clicking on a hidden clickable area between sets.

This was happening because the SetPicker's modal and popover triggers remained interactive even when the enabled prop was false. While the visible buttons were conditionally hidden, the underlying trigger slots were still capturing clicks and opening the picker.

This PR fixes it by wrapping the trigger slots in a Primitive component with a capture-phase click handler that stops event propagation when enabled is false, preventing the modal/popover from opening.

Fixes #14285

@jackmcdade jackmcdade merged commit 466b2e8 into 6.x Mar 18, 2026
18 checks passed
@jackmcdade jackmcdade deleted the replicator-set-picker branch March 18, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replicator with limit 1 issue

2 participants