Преглед на файлове

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

Enrico Berti преди 8 години
родител
ревизия
57ff64d676
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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') {