Skip to content

Conversation

@DlLemmA
Copy link

@DlLemmA DlLemmA commented Dec 18, 2025

Problem

When multiple modals are opened using Modal.confirm, previously opened modals rerender unexpectedly due to their VNode keys changing.

The root cause is that all modals share a global mutable uuid for keys. The render function closes over this mutable variable, so previously created modals can see the updated uuid, leading to unstable keys and unnecessary remounts.

Note: Vue’s useId() cannot be used here because these modals are created imperatively, outside of component setup, which triggers a Vue warning.

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