Skip to content

Commit

Permalink
fix: set disabled attribute to menu buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed May 13, 2024
1 parent 66b52ba commit 0ac482a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
class="NgxEditor__MenuItem--Icon"
[class.NgxEditor__MenuItem--Active]="isActive || showPopup"
[class.NgxEditor--Disabled]="!canExecute"
[disabled]="!canExecute"
[innerHTML]="icon | sanitizeHtml"
(mousedown)="togglePopup($event)"
[title]="title | async"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
type="button"
class="NgxEditor__Dropdown--Text"
[class.NgxEditor__Dropdown--Selected]="isSelected"
[disabled]="isDropdownDisabled"
[class.NgxEditor--Disabled]="isDropdownDisabled"
(mousedown)="toggleDropdown($event)"
[ariaLabel]="getName(activeItem || group) | async"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
class="NgxEditor__MenuItem--Icon"
[class.NgxEditor__MenuItem--Active]="isActive || showPopup"
[class.NgxEditor--Disabled]="!canExecute"
[disabled]="!canExecute"
[innerHTML]="icon | sanitizeHtml"
(mousedown)="onMouseDown($event)"
[title]="title | async"
Expand Down

0 comments on commit 0ac482a

Please sign in to comment.