Fix autocomplete / set attributes' dropdown being cut by its container

This commit is contained in:
Molkobain
2021-04-04 21:50:06 +02:00
parent c0b1581f0c
commit 0bc2f2c818
2 changed files with 5 additions and 1 deletions

View File

@@ -97,10 +97,12 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
valueField: 'value',
labelField: 'label',
searchField: 'label',
options:JSON.parse(options),
options: JSON.parse(options),
maxItems: 1,
copyClassesToDropdown: false,
inputClass: 'ibo-input ibo-input-select ibo-input-selectize',
// To avoid dropdown to be cut by the container's overflow hidden rule
dropdownParent: 'body',
});
let $selectize = $select[0].selectize; // This stores the selectize object to a variable (with name 'selectize')
$selectize.setValue(initValue, true);

View File

@@ -151,6 +151,8 @@ $.widget('itop.set_widget',
create: false,
placeholder: Dict.S("Core:AttributeSet:placeholder"),
inputClass: 'selectize-input ibo-input ibo-input-set ibo-input-selectize',
// To avoid dropdown to be cut by the container's overflow hidden rule
dropdownParent: 'body',
onInitialize: function () {
var selectizeWidget = this;
setWidget._onInitialize(selectizeWidget);