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

fix: ignore target set while popover is detached until re-attached #8350

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

web-padawan
Copy link
Member

Description

Fixes vaadin/flow-components#6953

Currently, target listeners are removed when popover is detached. However, we don't handle case when target property is set while detached - in this case, the target listeners will be still added. This PR fixes that by changing the observer logic to use _isConnected property and take it into account when checking whether listeners should be added.

Type of change

  • Bugfix

@web-padawan web-padawan merged commit b402736 into main Dec 16, 2024
9 checks passed
@web-padawan web-padawan deleted the fix/set-target-while-detached branch December 16, 2024 14:25
web-padawan added a commit that referenced this pull request Dec 16, 2024
web-padawan added a commit that referenced this pull request Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[popover] Adding target twice and setting visible causes two popover overlays to be opened
4 participants