mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +08:00
Fix dropdown event after click browser back action
This commit is contained in:
parent
33a4cb93c7
commit
179dea085f
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue