-
Notifications
You must be signed in to change notification settings - Fork 161
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
IgxSimpleCombo: possibility to not open dropdown on clear #11871
Comments
Hello @Timmeeeey, A similar behavior like the one of the IgxCombo could be achieved on application level by using the simple combo’s opening and selectionChanging events and canceling the opening event when the item is deselected, i.e., cleared via the “X” icon. Here could be found a sample demonstrating this approach. However, this does require additional lines of code and perhaps having a way to configure the simple combo’s dropdown to either open or not is a better option. |
Hi @RivaIvanova, |
There has been no recent activity and this issue has been marked inactive. |
Hey, @Timmeeeey, as you see there is a PR that adds such options for both igx-combo and igx-simple-combo. However, we are still considering if adding an option is necessary because having an event is more than enough - it is possible to abandon the PR. The more important in that case is what should happen when the clear button is clicked - either to open the drop-down or not, something that is different between igx-combo and igx-simple-combo and should be consistent. Soon there will be an effort for a combo component in our web-components package, so we will discuss the best UX for the clear button and will transform the solution here. I hope till then you can use the solution @RivaIvanova has suggested you. |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
@Lipata , @teodosiah do you have update on that issue? |
The combo in the web-components was designed so that the clear button never opens the drop-down - this is for both multiple selection and single selection mode (in web-components it is one component). Once the value is cleared then one additional click will open the drop-down. I think this is a good solution and it was agreed by our design team that this is a good approach. It seems that we can change the simple combo in angular to behave the same way - not to open the drop-down on clear, and if somebody wants such a thing we will provide him with an application solution. @kdinev do you think that we can introduce such a behavioral change for the simple-combo and in that way sync it with the combo in angular and combo in web components? |
Seems like currently the |
The |
Is your feature request related to a problem? Please describe.
When you clear a IgxSimpleCombo then the dropdown opens.
When you clear a IgxCombo then the dropdown doesn't open.
Describe the solution you'd like
It should be possible to configure the IgxSimpleCombo to not open the dropdown on clear.
The text was updated successfully, but these errors were encountered: