-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat(typeahead): optionally do not hide the results on blur #2059
Comments
lost focus -> hide results |
So the use case is with mobile browsers. If you want to just 'hide' the virtual keyboard with iOS Safari, you have to tap the 'close/end' toggler in the keyboard itself. That is enough to trigger the blur event from the input and then you lose also the results. I think can be useful to better control the user interaction. (there are also some other example with desktop, when you have two lists, when you need to compare something static with something dynamic etc) |
In my case, the typeaheadOnBlur is not being triggered at all. Has someone else had this issue? .html:
.ts:
|
@cyberdante typeaheadOnBlur will be triggered only if you have matching results. If no matching results typeaheadNoResults will be triggered. Hope this helps. |
@valorkin @karthikv-26 when you have already selected a value from the matching result, the matching result list is closed and the focus is on the input where that value is displayed, I would expect that the typeaheadOnBlur is triggered (as the input is part of the component) if I tab out or click outside of the component. |
Hello :) Why prio low? I think impacts heavily the UX. This hide on blur feature affects mobile devices because of the onscreen keyboard: when the results list is longer than the screen, users usually immediately close the onscreen keyboard and then the results are gone. I really hope this feature will be out soon. Also at the end is just a kill-switch for the internal onblur listener. |
@NKjoep you're right, this is easy to fix. For now we just have more important stuff to do (compatibility, performance etc). You can create PR with this enhancement and we'll probably merge it and include this feature in the next release. |
@NKjoep bugs and perf issues are hight prio at the moment |
Right now there is no way to close the dropdown without selecting on option. Clicking outside calls typeaheadOnBlur but then the dropdown doesn't close. |
I face the same issue. no matching value and dropdown is not hidden. Is there any work around for this? |
I couldn't find any issue related to the onblur, so I am creating this.
the current src code:
I would expect a configuration option whether hide or not the results.
The text was updated successfully, but these errors were encountered: