-
-
Notifications
You must be signed in to change notification settings - Fork 208
Input not cleared on blur if auto completion is enabled #61
Comments
@amit1911 Thank you very much for the detailed report! I think that |
i disabled the |
@amit1911 Could you please check if
We need automated tests for that. 😞 |
okay will verify this |
Awesome, thank you very much! 👍 |
Currently the input is only cleared on blur when the autocomplete menu doesn't exist (given that
clearOnBlur
is true). I think it would be good to have an option wherein the input is always cleared on blur as otherwise the user needs to manually clear it. We just need to change thehandleInputBlur
function. The current version is as follows:-The first line above checks if the autocomplete menu exists. If it exists, then it bypasses the whole blur event handling. Maybe we can have another prop
alwaysClearOnBlur
so that the input is always cleared though I am not sure why are we not handling the blur event in this case. We can customize thehandleInputBlur
as follows:-The text was updated successfully, but these errors were encountered: