-
Notifications
You must be signed in to change notification settings - Fork 327
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
Empty value in the combobox is encountering an exception #274
Comments
I see popper.js being loaded, but your CDN link is to Bootstrap 3, which doesn't require it - is that a typo? |
Nope it is not type. I need popper.js as I am using tool tip in my project . And yes I am bootstrap 3 and it is working in my other application components and only in this case selecting empty value from combobox is not working.. |
If the error you're referring to is coming from those two lines after your jQuery code, that's not really an issue with the combo box - you need some null checks. There are also much simpler ways to get the value you're trying to read. This probably needs to be a Stack Overflow question. |
Thanks. could you please suggest me any sample null checks if you are aware of ? |
There are a couple other bugs mentioning this. Just searching for popper finds them. It doesn't like when the list is empty, and there could be something to do with the parent change where the list is appended to the body now for some reason (Buttons and list/menu have different parents now). I ended up Just taking the popper lines out of the combobox code so it no longer checks if it is there or adds the data attributes. I get no errors now. |
Below piece of code is used to create combobox and read the values from combobox for inserting into the database. if there is no value selected in the conbobox, JavaScript is throwing an error as it is empty. Could you please advise how to fix this.
Combobox from HTML body:
JavaScript to convert simple select element into combobox:
Below is the external .js and .css used.
The text was updated successfully, but these errors were encountered: