Skip to content

Commit 6a466b8

Browse files
authored
docs(ToggleButton): Do not set Selected in OnClick (#3022)
1 parent 4a84b36 commit 6a466b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/togglebutton/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The `OnClick` event fires when the user clicks or taps the button, or presses `E
2323

2424
The event handler receives argument of type [MouseEventArgs](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.web.mouseeventargs).
2525

26-
The `OnClick` event fires before `SelectedChanged`.
26+
The `OnClick` event fires before `SelectedChanged`. Do not change the `Selected` parameter value in the `OnClick` event if the `OnClick` handler is asynchronous. Control the `Selected` parameter value in the [`SelectedChanged` event](#selectedchanged).
2727

2828
>caption Handle the Toggle Button OnClick event
2929

0 commit comments

Comments
 (0)