You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: