mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +08:00
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:
commit
ad137b47df
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue