Skip to content

Fix/toolbar dialog race condition#39

Merged
ProLoser merged 2 commits intomainfrom
fix/toolbar-dialog-race-condition
Jun 12, 2025
Merged

Fix/toolbar dialog race condition#39
ProLoser merged 2 commits intomainfrom
fix/toolbar-dialog-race-condition

Conversation

@ProLoser
Copy link
Owner

No description provided.

The race condition occurred when an unauthenticated user clicked the toolbar to open a dialog. The `pointerup` event would toggle the dialog open, but then bubble up to a document-level listener that would immediately close it.

This fix calls `event.stopPropagation()` in the toolbar's `onPointerUp` handler to prevent the event from reaching the document listener, ensuring the dialog remains open as intended.
The race condition occurred when an unauthenticated user clicked the toolbar to open a dialog. The `pointerup` event would toggle the dialog open, but then bubble up to a document-level listener that would immediately close it.

This fix calls `event.stopPropagation()` in the toolbar's `onPointerUp` handler to prevent the event from reaching the document listener, ensuring the dialog remains open as intended.
@ProLoser ProLoser merged commit 5b7d5ca into main Jun 12, 2025
1 check failed
@ProLoser ProLoser deleted the fix/toolbar-dialog-race-condition branch June 12, 2025 16:23
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.

1 participant