optimistex / ngx-select-ex

Angular based replacement for select boxes
https://optimistex.github.io/ngx-select-ex/
MIT License
111 stars 42 forks source link

Autocomplete text remains after being applied #161

Closed craig-dae closed 5 years ago

craig-dae commented 5 years ago

Describe the bug When typing in the autocomplete area and hitting enter, the text remains even after the appropriate dropdown item is added to the selected array. It has to be deleted before using the text input again. Users are also confused as to the effect of leaving the text.

To Reproduce

Amster" stays in the text input area, and has to be deleted before using the text input again. Users are confused about whether it is necessary to delete the text before saving their form.

Expected behavior Autocomplete text should be removed when it results in adding a selected item to the array.

optimistex commented 5 years ago

@craig-dae Thank you for such good description. I'll check it in a while and try to fix.

optimistex commented 5 years ago

@craig-dae Use the option https://github.com/optimistex/ngx-select-ex#api :

autoClearSearch boolean false Auto clear a search text after select an option. Has effect for multiple = true
craig-dae commented 5 years ago

Sorry for missing that! Thank you!