EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on November 05, 2015, 04:19:33 AM



Title: Combobox remove unlisted text after search
Post by: aswzen on November 05, 2015, 04:19:33 AM
Combobox search still input the search parameter instead of removing it

see this fiddle:
http://jsfiddle.net/d0x4628L/2/

in Phone input box try to write 'S' , then Sony and Samsung appear,
after that press both Sony and Samsung
and then in the input box text will appear 'S,Sony,Samsung' ...

Why does the 'S' text still appear? i just want use the input box as an item searcher.

How to make the 'S' dissapear after i select the items on list?

Thank You in advance


Title: Re: Combobox search still input the search parameter instead of removing it
Post by: stworthy on November 05, 2015, 08:11:49 AM
After type something on the inputing box, you must press 'ENTER' key to do a selection, otherwise the inputing value will be stored as the combobox value. If you wish to erase the non-existing value, you can attach the 'blur' event on the inputing box. For more information please refer to http://jsfiddle.net/d0x4628L/3/