Skip to content

Commit

Permalink
Revert "disabled class on a i.delete.icon selector has no effect"
Browse files Browse the repository at this point in the history
This reverts commit d09c6dd.
  • Loading branch information
mvorisek committed Nov 29, 2024
1 parent f7fc9cd commit e0ba76a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Form/Control/Dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"');
Expand Down

0 comments on commit e0ba76a

Please sign in to comment.