-
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
fix(typeahead): fix focus after leaving control #4622
fix(typeahead): fix focus after leaving control #4622
Conversation
Codecov Report
@@ Coverage Diff @@
## development #4622 +/- ##
================================================
+ Coverage 52.52% 71.44% +18.92%
================================================
Files 3 259 +256
Lines 99 8384 +8285
Branches 17 1563 +1546
================================================
+ Hits 52 5990 +5938
- Misses 37 1986 +1949
- Partials 10 408 +398
Continue to review full report at Codecov.
|
code coverage |
@milosdanilov Not sure, the PR require improvements |
Any progress/plan for this PR? |
@EmanJasarevic oh, that's pretty old one |
Co-authored-by: Dmitriy Danilov <daniloff200@gmail.com>
* fix(typeahead): fix focus after leaving control (#4622) Co-authored-by: Dmitriy Danilov <daniloff200@gmail.com> * fix(typeahead): fix wrong imports, update descrtiption, move property to config * fix(typeahead): rename property, rename all demos Co-authored-by: Ilya Tarusin <tarusin.iliya@gmail.com> Co-authored-by: dmitry-zhemchugov <44227371+dmitry-zhemchugov@users.noreply.github.com>
Hi @daniloff200,
In our app we use the typeahead to provide suggestions, but also allow user to enter freetext in the input as well and accept it even though it is not option from the typeahead. For example, You start typing "Wash." and press enter/tab, focus will move to the next control and your input will be accepted. Is it doable with the current Typeahead implementation? Regards |
@daniloff200 line 189 in typeahead directive-
typeaheadCancelRequestOnFocusLost should be cancelRequestOnFocusLost |
woah |
Related to: #1884
Added new demo with input which demonstrates behavior with closed dropdown when we leaving input field.