Skip to content

Commit 0f638bd

Browse files
authored
Revert "MudCombobox: Bugfixes (#297)" (#303)
This reverts commit 21e2ca4.
1 parent 2103581 commit 0f638bd

File tree

4 files changed

+176
-164
lines changed

4 files changed

+176
-164
lines changed

CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBox.razor

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Value="@_searchString" ValueChanged="@HandleInternalValueChanged"
1919
DisableUnderLine="@DisableUnderLine"
2020
Disabled="@Disabled" ReadOnly="@ReadOnly" Error="@Error" ErrorId="@ErrorId"
21-
Clearable="@Clearable" ForceClearable="@(Clearable && HasValue(Value))" OnClearButtonClick="@ClearButtonClickHandlerAsync"
21+
Clearable="@Clearable" ForceClearable="@(Clearable && HasValue(Value))" OnClearButtonClick="(async (e) => await ClearButtonClickHandlerAsync(e))"
2222
@attributes="UserAttributes" OnBlur="@HandleOnBlur" ForceShrink="@(HasValue(Value) || _isOpen || ForceShrink)">
2323

2424
<AdornmentEnd>
@@ -131,7 +131,7 @@
131131
@if (SelectAll)
132132
{
133133
<div class="@($"mud-combobox-item mud-combobox-item-clickable mud-combobox-item-{Dense.ToDescriptionString()} mud-ripple d-flex")" @onclick="SelectAllItems" @onclick:stopPropagation="true">
134-
<MudCheckBox Class="mx-4" @bind-Checked="@_allSelected" Color="@Color" @onclick="SelectAllItems" Dense="true" />
134+
<MudCheckBox Class="mx-4" @bind-Checked="_allSelected" Color="@Color" @onclick="SelectAllItems" Dense="true" />
135135
<MudText Typo="GetTypo()">@SelectAllText</MudText>
136136
</div>
137137
<MudDivider />
@@ -157,4 +157,6 @@
157157

158158
</CascadingValue>
159159
<!-- mousedown instead of click needed to close the menu before OnLostFocus runs -->
160-
<MudOverlay Visible="_isOpen" @onmousedown="@CloseMenu" LockScroll="@LockScroll" />
160+
<MudOverlay Visible="_isOpen" @onmousedown="@(() => CloseMenu())" LockScroll="@LockScroll" />
161+
162+

0 commit comments

Comments
 (0)