File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/BootstrapBlazor/Components/Checkbox Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -204,23 +204,23 @@ private async Task<bool> OnBeforeStateChanged(CheckboxState state)
204204 private async Task OnStateChanged ( SelectedItem < TValue > item , bool v )
205205 {
206206 item . Active = v ;
207- var vals = new List < TValue ? > ( ) ;
207+ var items = new List < TValue ? > ( ) ;
208208 if ( Value != null )
209209 {
210- vals . AddRange ( Value ) ;
210+ items . AddRange ( Value ) ;
211211 }
212212
213- var val = vals . Find ( i => IsEquals ( item . Value ) ) ;
213+ var val = items . Find ( i => IsEquals ( item . Value ) ) ;
214214 if ( v && val == null )
215215 {
216- vals . Add ( item . Value ) ;
216+ items . Add ( item . Value ) ;
217217 }
218218 else
219219 {
220- vals . Remove ( val ) ;
220+ items . Remove ( val ) ;
221221 }
222222
223- CurrentValue = vals ;
223+ CurrentValue = items ;
224224
225225 if ( OnSelectedChanged != null )
226226 {
You can’t perform that action at this time.
0 commit comments