Skip to content

Commit 9713a34

Browse files
authored
fix: prevent combobox from being cleared when disabled (#2947)
1 parent 505fbae commit 9713a34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/combobox/combobox.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,10 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
777777
clearInput(event) {
778778
event.stopPropagation();
779779
event.preventDefault();
780+
781+
if (this.disabled) {
782+
return;
783+
}
780784

781785
if (this.type === "single") { // don't want to clear selected or close if multi
782786
this.clearSelected(event);

0 commit comments

Comments
 (0)