Typeahead
Typeahead copied to clipboard
[Bug] Different blur behavior - click vs tab
Describe the bug After focus, if search is not initiated and user clicks away, the selected value is restored. If instead of clicking away, user clicks tab to lose focus, the selected value is NOT restored and the user sees only the placeholder text even though the selected (bound) value remains (as it should).
Related to: https://github.com/Blazored/Typeahead/issues/200
To Reproduce Steps to reproduce the behavior:
- Go to demo site https://blazored.github.io/Typeahead/
- Click on "Blazored Typeahead - Standalone" input, which has a pre-selected value of "Charles"
- Click away from input
- Note that "Charles" is restored
- Click back into input
- Tab away from input
- Note that "Charles" is not restored, though selected (bound) value remains below
Expected behavior When not in focus, input should always display bound value template.
Screenshots/Video https://user-images.githubusercontent.com/7638116/116603159-77720080-a8e1-11eb-8ba1-acc20720df28.mp4