File tree Expand file tree Collapse file tree
src/CodeBeam.MudBlazor.Extensions/Components/SelectExtended Expand file tree Collapse file tree Original file line number Diff line number Diff line change 163163 <div style =" display : none " >
164164 <CascadingValue Value =" @this" IsFixed =" true" >
165165 <MudListExtended T =" T" @bind-SelectedValue:set =" @SetValueAsync" @bind-SelectedValue:get =" @ReadValue" @bind-SelectedValues =" @SelectedValues" @bind-SelectedItem =" @SelectedListItem" @bind-SelectedItems =" @SelectedListItems"
166- Clickable =" true" Color =" @Color" Dense =" @Dense" ItemCollection =" @ItemCollection" Virtualize = " @Virtualize " Padding =" @EnablePopoverPadding" EnableSelectedItemStyle =" @EnableSelectedItemStyle"
166+ Clickable =" true" Color =" @Color" Dense =" @Dense" ItemCollection =" @ItemCollection" Padding =" @EnablePopoverPadding" EnableSelectedItemStyle =" @EnableSelectedItemStyle"
167167 MultiSelection =" @MultiSelection" MultiSelectionComponent =" @MultiSelectionComponent" MultiSelectionAlign =" @MultiSelectionAlign" SelectAll =" @SelectAll" SelectAllPosition =" @SelectAllPosition" SelectAllText =" @SelectAllText"
168168 CheckedIcon =" @CheckedIcon" UncheckedIcon =" @UncheckedIcon" IndeterminateIcon =" @IndeterminateIcon" SelectValueOnTab =" @SelectValueOnTab" Comparer =" @Comparer" AddNullItem =" @AddNullItem" AddedNullItemText =" @AddedNullItemText"
169169 ItemTemplate =" @ItemTemplate" ItemSelectedTemplate =" @ItemSelectedTemplate" ItemDisabledTemplate =" @ItemDisabledTemplate" SearchBox =" @SearchBox" SearchBoxAutoFocus =" @SearchBoxAutoFocus" SearchFunc =" @SearchFunc" SearchBoxPlaceholder =" @SearchBoxPlaceholder"
Original file line number Diff line number Diff line change @@ -773,10 +773,10 @@ protected override void OnInitialized()
773773 {
774774 _selectedValues = new HashSet < T ? > ( _comparer ) { ReadValue } ;
775775 }
776- else if ( MultiSelection && SelectedValues != null )
776+ else if ( MultiSelection && SelectedValues != null && SelectedValues . Any ( ) )
777777 {
778778 // TODO: Check this line again
779- SetValueAsync ( SelectedValues . FirstOrDefault ( ) ) . CatchAndLog ( ) ;
779+ SetValueAndUpdateTextAsync ( SelectedValues . FirstOrDefault ( ) ) . CatchAndLog ( ) ;
780780 }
781781 }
782782
You can’t perform that action at this time.
0 commit comments