You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Core Combobox clear button bypasses read-only state #14701
When a Core Combobox (fd-combobox) has both [readOnly]="true" and [showClearButton]="true", the clear (X) button still clears the value. Clicking it (or pressing Enter on it) empties the control, propagates the change, and marks the form dirty — even though the combobox is read-only.
Typing and arrow/enter selection are correctly blocked when read-only; only the clear button is unguarded.
Expected behavior
With readOnly set, the clear button must not change the value, mark the control dirty, or emit changes.
Programmatic updates (setValue, patchValue, writeValue, reset) still work while read-only.
Current behavior
_handleClearSearchTerm() clears the text and calls _propagateChange() with no readOnly check, so the clear button wipes a read-only value.
Steps to reproduce
Set up an fd-combobox with [readOnly]="true" and [showClearButton]="true", seeded with a value (e.g. Apple).
Click the clear (X) button (or focus it and press Enter).
The value is cleared and the control is marked dirty.
Scope
Core Combobox (fd-combobox). The clear button only renders whenshowClearButton is enabled (off by default), so this affects comboboxes that opt into it.
Notes
This example was temporary created to illustrate the problem
Activity