Skip to content

Fix modals flickering on multiple modals open#8442

Closed
DlLemmA wants to merge 1 commit intovueComponent:mainfrom
DlLemmA:fix/modal-stable-keys
Closed

Fix modals flickering on multiple modals open#8442
DlLemmA wants to merge 1 commit intovueComponent:mainfrom
DlLemmA:fix/modal-stable-keys

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.

@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Feb 17, 2026
@github-actions github-actions bot closed this Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant