-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
bootstrap-select.js:797 Uncaught TypeError: Cannot read property '0' of undefined #2034
Comments
@caseyjhol commented on Jun 5, 2018, 7:58 PM UTC: Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via Plunker, jsFiddle, CodePen or JS Bin, and report back with your link, Angular version, Bootstrap version, bootstrap-select version, and specific browser and OS details. |
@Dhara-ZYMR commented on Aug 1, 2018, 10:07 AM UTC: Angular version: 1.6 As I said I have options coming in dynamically using APIs, and the options are also refreshed based on the previous select-box selection. But in my application, I have this problem everywhere I use bootstrap-select. |
Released in v1.13.4! |
I was having this error since JS libs update, then did an update of bootstrap-select to v1.13.4, but that only changed few of the errors into other ones and did not resolve the issue. AngularJS v1.7.5. It happens when you call selectpicker('refresh') on select field with initiated selectpicker. No idea why. Possibly throttling or loops. I wrapped the refresh call in a self-extending timeout of 250ms that would eliminate both cases but it did not help. Sometimes these errors do not appear with the same config. I have no ng-model set up. Most of the fields are of a multiple choice. [updated logs]
|
@Dhara-ZYMR commented on Jun 5, 2018, 9:53 AM UTC:
I am using bootstrap-select with its angularjs directive Ng-bootstrap-select
I am getting following error while scrolling through the options of the select box
Please note following things:
I send a $http request to get the options of the select-box based on the previous box value selected.
Trying to create a jsfiddle to demonstrate this issue.
Thanks in advance for help
This issue was moved by caseyjhol from snapappointments/bootstrap-select-temp#67.
The text was updated successfully, but these errors were encountered: