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 Oct 26, 2024
1 parent 85d96f3 commit 01a7511
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 01a7511

Please sign in to comment.