-
Notifications
You must be signed in to change notification settings - Fork 480
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
🐞 - Select - dropdown content is not shown if initial state is opened #9224
Comments
Here is Working Example . moved https://stackblitz.com/edit/angular-az8rzh-ugvdqf?file=src%2Fapp%2Fapp.component.ts |
Dropdowns automatically close if the host is out of sight. Could be that if it is set to true initially it gets processed even before the element is properly added to DOM so it thinks that it's not visible and immediately closes. Would workaround by @mohan-mu work for you? |
Actually I provided a minimum reproducible example, in case if component will be instantiated later (e.g. hidden by |
This approach with directive helper is working on stackblitz, but not in our application:) https://stackblitz.com/edit/angular-az8rzh-km4nwq?file=src%2Fapp%2Fapp.template.html,src%2Fapp%2Fapp.component.ts |
@waterplea do you guys have any insight on when this bug might be fixed? We use this feature a lot in our application and our current workaround is not ideal for users, it takes 1s to open a menu (we use a setTimeout function). Thanks. |
I'm not sure yet, kind of swarmed with other stuff |
Code Example URL
https://stackblitz.com/edit/angular-az8rzh?file=src/app/app.template.html,src/app/app.component.ts
Description
Use case is to open a dropdown menu for select automatically. I used
[tuiDropdownOpen]
which is coming fromTuiDropdownOpenLegacy
directive but for some reason it's not working (sorry didn't have time to debug more).In provided example the problem is that dropdown open state is updated automatically to
false
. And also interesting example wheretuiDropdownOpenChange
is not used, please check here https://stackblitz.com/edit/angular-az8rzh-auyhbj?file=src%2Fapp%2Fapp.template.html.In this case select is focused and arrow icon remains in the position when dropdown is opened, but dropdown content is not shown
Taiga UI version
4.8.1
Browser Used
Chrome
OS Used
macOS
The text was updated successfully, but these errors were encountered: