Skip to content

Commit

Permalink
fix: close #1405
Browse files Browse the repository at this point in the history
  • Loading branch information
NaBian committed Jun 3, 2023
1 parent 0d0a502 commit 4206bfd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Shared/HandyControl_Shared/Controls/Input/ComboBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ public ComboBox()
{
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
{
if (IsReadOnly)
{
return;
}

SetCurrentValue(SelectedValueProperty, null);
SetCurrentValue(SelectedItemProperty, null);
SetCurrentValue(SelectedIndexProperty, -1);
Expand Down

0 comments on commit 4206bfd

Please sign in to comment.