Merge pull request #2230 from aignatov-bio/ai-sci-4097-fix-dropdown-event-after-back-action

Fix dropdown event after click browser back action [SCI-4097]
This commit is contained in:
aignatov-bio 2019-11-25 13:58:04 +01:00 committed by GitHub
commit ad137b47df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,7 +244,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();