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
This code uses a setTimeout in a very hack-ish way (basically, hope that bootstrap-select has been initialized first within 500ms). This is really unreliable and should be listening for an event instead.
We're actually waiting for the bootstrap-select project to create an initialized event that they themselves will trigger after their plugin has been created (see snapappointments/bootstrap-select#1026).
This will allow us to ensure that bootstrap-select has indeed initialized before attempting to initialize our plugin.
The text was updated successfully, but these errors were encountered:
https://github.com/truckingsim/Ajax-Bootstrap-Select/blob/master/src/js/classes/AjaxBootstrapSelect.js#L246-L251
This code uses a
setTimeout
in a very hack-ish way (basically, hope that bootstrap-select has been initialized first within 500ms). This is really unreliable and should be listening for an event instead.We're actually waiting for the bootstrap-select project to create an
initialized
event that they themselves will trigger after their plugin has been created (see snapappointments/bootstrap-select#1026).This will allow us to ensure that bootstrap-select has indeed initialized before attempting to initialize our plugin.
The text was updated successfully, but these errors were encountered: