diff --git a/src/Form/Control/Dropdown.php b/src/Form/Control/Dropdown.php index c33db75dfd..d8621ce902 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"');