瀏覽代碼

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;
     var $select = $(element).selectize(options)[0].selectize;
 
 
     if (typeof allBindingsAccessor.get('value') == 'function') {
     if (typeof allBindingsAccessor.get('value') == 'function') {