소스 검색

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') {