Browse Source

HUE-8277 [frontend] The selectize binding should append to the body by default to prevent cutting its options

Enrico Berti 7 years ago
parent
commit
57ff64d676
1 changed files with 4 additions and 0 deletions
  1. 4 0
      desktop/core/src/desktop/static/desktop/js/ko.selectize.js

+ 4 - 0
desktop/core/src/desktop/static/desktop/js/ko.selectize.js

@@ -76,6 +76,10 @@ ko.bindingHandlers.selectize = {
       }
     }
 
+    if (!options.hasOwnProperty('dropdownParent')) {
+      options.dropdownParent = 'body';
+    }
+
     var $select = $(element).selectize(options)[0].selectize;
 
     if (typeof allBindingsAccessor.get('value') == 'function') {