Skip to content

Conversation

@0x6A6471
Copy link

closes #151

Context

The issue occurs because the Escape key event bubbles from the modal's Dialog component to the parent EditBox component's onEscape handler, which then re-triggers the closeEditor function, reopening the confirm modal in an endless loop.

The fix involves adding a signal in EditBox to track when the modal was just closed via Escape, preventing the re-trigger in the onEscape handler. This ensures the modal closes cleanly without the continuous open/close cycle.

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