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

calling deselectAll/selectAll immediately after page load throws error #2337

Closed
caseyjhol opened this issue Oct 11, 2019 · 1 comment
Closed

Comments

@caseyjhol
Copy link
Member

50b2327#commitcomment-35128666

createLi is called in a setTimeout, so immediately after page load, selectpicker.current.elements hasn't been set yet.

Solution: split option data and element generation into separate functions. Call data generation function in init and leave element generation in setTimeout.

@caseyjhol
Copy link
Member Author

Released in v1.13.13!

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

1 participant