bootstrap-combobox icon indicating copy to clipboard operation
bootstrap-combobox copied to clipboard

The typed by user value disappear after moving focus to different element

Open lwebzem opened this issue 7 years ago • 3 comments
trafficstars

I put combobox on my page, I can select value from dropdown and it will stay. However if I type the value that is not in dropdown, after moving focus to different element by clicking somewhere else the typed value will disappear. I see the same behavior on your demo page http://bootstrap-combobox-test.herokuapp.com/

Can you help please to resolve this? Thanks. Leo.

lwebzem avatar Sep 14 '18 15:09 lwebzem

This is configured via the clearIfNoMatch option (see https://github.com/danielfarrell/bootstrap-combobox#options). Set that to false:

$('your selector').combobox({ clearIfNoMatch: false });

tiesont avatar Sep 15 '18 01:09 tiesont

Thanks for the quick response , I updated but still have the same issue:

    $(document).ready(function(){
      $('.combobox').combobox({ clearIfNoMatch: false });
 
    });
Thanks

lwebzem avatar Sep 15 '18 02:09 lwebzem

I had the same issue; the clearIfNoMatch var was not in bootstrap-combobox.js (v1.1.8). I re-downloaded the js, which solved the issue.

mattosinski avatar Dec 05 '18 21:12 mattosinski