File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
src/BootstrapBlazor/Components/Checkbox Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -215,21 +215,23 @@ private async Task<bool> InternalStateChanged(CheckboxState state)
215215 if ( IsBoolean )
216216 {
217217 CurrentValue = ( TValue ) ( object ) ( state == CheckboxState . Checked ) ;
218- }
219218
220- if ( State != state )
221- {
222- State = state ;
223- if ( StateChanged . HasDelegate )
219+ if ( ValueChanged . HasDelegate )
224220 {
225- await StateChanged . InvokeAsync ( State ) ;
226221 ret = false ;
227222 }
223+ }
228224
229- if ( OnStateChanged != null )
230- {
231- await OnStateChanged ( State , Value ) ;
232- }
225+ State = state ;
226+ if ( StateChanged . HasDelegate )
227+ {
228+ await StateChanged . InvokeAsync ( State ) ;
229+ ret = false ;
230+ }
231+
232+ if ( OnStateChanged != null )
233+ {
234+ await OnStateChanged ( State , Value ) ;
233235 }
234236 return ret ;
235237 }
You can’t perform that action at this time.
0 commit comments