diff options
Diffstat (limited to 'assets/js/components/select-dropdown-autocomplete.js')
-rw-r--r-- | assets/js/components/select-dropdown-autocomplete.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/assets/js/components/select-dropdown-autocomplete.js b/assets/js/components/select-dropdown-autocomplete.js index 42344be5..c2c36f5b 100644 --- a/assets/js/components/select-dropdown-autocomplete.js +++ b/assets/js/components/select-dropdown-autocomplete.js @@ -238,6 +238,11 @@ KB.component('select-dropdown-autocomplete', function(containerElement, options) KB.on('select.dropdown.loading.start', onLoadingStart); KB.on('select.dropdown.loading.stop', onLoadingStop); + KB.on('modal.close', function () { + KB.removeListener('select.dropdown.loading.start', onLoadingStart); + KB.removeListener('select.dropdown.loading.stop', onLoadingStop); + }); + chevronIconElement = KB.dom('i') .attr('class', 'fa fa-chevron-down select-dropdown-chevron') .click(toggleDropdownMenu) |