Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lwebzem opened this issue Sep 14, 2018 · 3 comments
Open

Comments

@lwebzem
Copy link

lwebzem commented Sep 14, 2018

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.

@tiesont
Copy link
Collaborator

tiesont commented Sep 15, 2018

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

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

@lwebzem
Copy link
Author

lwebzem commented Sep 15, 2018

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

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

@mattosinski
Copy link

mattosinski commented Dec 5, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants