-
Notifications
You must be signed in to change notification settings - Fork 85
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
fix: restore overlay opened state when moving within the DOM #3648
Conversation
Although I'm generally not very happy about solutions based on An alternative could be something like: class Dialog {
connectedCallback() {
super.connectedCallback();
if (this.__restoreOpened) {
this.opened = true;
}
}
disconnectedCallback() {
super.disconnectedCallback();
if (this.opened) {
this.__restoreOpened = true;
this.opened = false;
}
}
} That would open / close the dialog synchronously but that solution is surely less laconic, compared to |
Kudos, SonarCloud Quality Gate passed!
|
…3664) Co-authored-by: Sascha Ißbrücker <[email protected]>
…3665) Co-authored-by: Sascha Ißbrücker <[email protected]>
This ticket/PR has been released with Vaadin 23.1.0.alpha2 and is also targeting the upcoming stable 23.1.0 version. |
Description
Restores overlay opened state when disconnecting and then reconnecting the element, for example when moving the element in the DOM. Applies to
vaadin-dialog
andvaadin-login-overlay
.Fixes vaadin/flow-components#2979
Fixes vaadin/flow-components#2087
Fixes #2125
Type of change