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

If you try to clear the Livesearch when empty, it throws error in console #1553

Closed
kpagnat opened this issue Nov 14, 2016 · 1 comment
Closed
Labels

Comments

@kpagnat
Copy link

kpagnat commented Nov 14, 2016

Hi everyone,

I have created a Fiddle that can reproduce the problem.
https://jsfiddle.net/dpzopfmw/

When input is already clear and you push back again, it throws an error 👍

bootstrap-select.js:246 Uncaught TypeError: Cannot read property 'replace' of undefined(…)

It seems the function normalizeToBase is not taking into consideration that "text" can be undefined.

Thanks

@caseyjhol caseyjhol added the bug label Nov 15, 2016
@markdon
Copy link

markdon commented Nov 17, 2016

Also occurs and repeats when pressing many (any?) non-printable keys.

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

No branches or pull requests

3 participants