Skip to content

Commit

Permalink
disabled class on a i.delete.icon selector has no effect
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Mar 29, 2024
1 parent 35ccf90 commit a8ab6af
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Form/Control/Dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,6 @@ protected function renderView(): void
$this->template->dangerouslySetHtml('multipleClass', 'multiple');
}

if ($this->readOnly || $this->disabled) {
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 a8ab6af

Please sign in to comment.