Fix dropdown event after click browser back action

This commit is contained in:
aignatov-bio 2019-11-25 11:28:11 +01:00
parent 33a4cb93c7
commit 179dea085f

View file

@ -221,7 +221,9 @@ var dropdownSelector = (function() {
var dropdownContainer;
// Check if element exist or already initialized
if (selectElement.length === 0 || selectElement.next().hasClass('dropdown-selector-container')) return;
if (selectElement.length === 0 || selectElement.next().hasClass('dropdown-selector-container')) {
selectElement.next().remove();
}
// Create initial container after select block
dropdownContainer = selectElement.after('<div class="dropdown-selector-container"></div>').next();