diff --git a/src/Form/Control/Dropdown.php b/src/Form/Control/Dropdown.php index 982b85f8ce..bb3bea1bcb 100644 --- a/src/Form/Control/Dropdown.php +++ b/src/Form/Control/Dropdown.php @@ -201,6 +201,12 @@ protected function renderView(): void $this->template->dangerouslySetHtml('multipleClass', 'multiple'); } + if ($this->disabled || $this->readOnly) { + if ($this->multiple) { + $this->jsDropdown(true)->find('a i.delete.icon')->attr('class', 'disabled'); + } + } + if ($this->disabled) { $this->template->set('disabledClass', 'disabled'); $this->template->dangerouslySetHtml('disabled', 'disabled="disabled"');