Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't return new modal dialogs if they're already defined #606

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

struan
Copy link
Member

@struan struan commented Sep 17, 2024

In theory I think vue should keep track of this but there's some sort of interaction that happens which means it can lose track of the dialog which means that e.g dialog.hide() does not work. To avoid this check for an existing dialog and return that if so then return that, otherwise create a new one.

In theory I think vue should keep track of this but there's some sort of
interaction that happens which means it can lose track of the dialog which
means that e.g dialog.hide() does not work. To avoid this check for an
existing dialog and return that if so then return that, otherwise create
a new one.
@struan struan requested a review from zarino September 17, 2024 08:14
Copy link
Member

@zarino zarino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m kind of amazed this works (the datasetModal() computed property just returning erm itself?) but have tried it out and can confirm it does.

@struan struan merged commit dc7dc4d into main Sep 17, 2024
5 checks passed
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.

2 participants