-
-
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
Sanitizer throws: bootstrap-select.js:1250 Uncaught TypeError: Cannot read property 'data' of undefined
#2231
Comments
Can you give me some more info about your setup? I've recreated your select based on what you've told me and it's working fine here: https://plnkr.co/edit/EiAVvxRMD1XoS1UgYWQZ?p=preview. Bug reports must include a live demo of the problem (please feel free to use my linked Plunker for your reduced test case). I also need your:
|
I am facing same issue . Exactly error in this line |
Bootstrap v3.3.7 |
|
I am facing the same issue. I could reproduce the issue in an Plnkr environment: https://next.plnkr.co/edit/R4sSYX1zoUrbggGK (sry, i have tried to shorten it, but if i cut some more option tags, then the bug does not occur) The error seems only to occur, when one of the middle options is selected. I would guess this bug is somehow related to the position of the selected option in the select element... |
Yes I can confirm that when I removed the option which was selected then the bug was not appearing. But not sure what does this mean. |
…ll scroll to that option, and set position0 higher than 0. If virtualScroll is not enabled, position0 should always be 0 when retreiving elementData. #2231
Released in v1.13.8! |
We encountered an issue of the old version with an error message like Uncaught TypeError: Cannot read property 'data' of undefined See also snapappointments/bootstrap-select#2231
I have the same issue and i just updated it to new plunker. |
@kvvaradha I'm not seeing that error in that Plunker. What are the steps to reproduce? |
Howdy!
Error
View
When you click on the button, drop down opens with white background and nothing more.
With the sanitizer off, there is no error and dropdown looks as expected.
How to reproduce
This report is based on v1.13.6 but also happened with v1.13.7.
With specific but common options provided, sanitizer will throw given error.
Data (I had to remove the labels but error is triggered anyway so it is about keys maybe):
Regards.
The text was updated successfully, but these errors were encountered: