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: do not close select overlay when opened before attached #8402

Merged
merged 2 commits into from
Dec 27, 2024

Conversation

web-padawan
Copy link
Member

Description

Fixes #8398

Changed the observer to depend on _overlayElement (also, updated the order of setting references in ready() as the observer also uses _inputContainer internally - didn't include both to avoid triggering it multiple times unnecessarily).

Type of change

  • Bugfix

Note

I didn't remove resetting opened to false as that could be considered a behavior altering change, and I added some missing tests that cover the relevant part of the observer for readonly and disabled test suites.

@web-padawan
Copy link
Member Author

Closing in favor of #8401

@web-padawan web-padawan force-pushed the fix/select-pre-opened-observer branch from bb2459d to b0f72d7 Compare December 27, 2024 09:24
@web-padawan web-padawan merged commit f12e44c into main Dec 27, 2024
9 checks passed
@web-padawan web-padawan deleted the fix/select-pre-opened-observer branch December 27, 2024 09:34
web-padawan added a commit that referenced this pull request Dec 27, 2024
web-padawan added a commit that referenced this pull request Dec 27, 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.

[select] Dropdown closes immediately when component is opened programmatically
3 participants