File tree Expand file tree Collapse file tree 2 files changed +20
-20
lines changed
src/BootstrapBlazor/Components/Button Expand file tree Collapse file tree 2 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -65,24 +65,4 @@ protected virtual async Task OnClickButton()
6565 /// </summary>
6666 /// <returns></returns>
6767 public ValueTask FocusAsync ( ) => ButtonElement . FocusAsync ( ) ;
68-
69- /// <summary>
70- /// 处理点击方法
71- /// </summary>
72- /// <returns></returns>
73- protected virtual async Task HandlerClick ( )
74- {
75- if ( OnClickWithoutRender != null )
76- {
77- if ( ! IsAsync )
78- {
79- IsNotRender = true ;
80- }
81- await OnClickWithoutRender ( ) ;
82- }
83- if ( OnClick . HasDelegate )
84- {
85- await OnClick . InvokeAsync ( ) ;
86- }
87- }
8868}
Original file line number Diff line number Diff line change @@ -231,6 +231,26 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
231231 }
232232 }
233233
234+ /// <summary>
235+ /// 处理点击方法
236+ /// </summary>
237+ /// <returns></returns>
238+ protected virtual async Task HandlerClick ( )
239+ {
240+ if ( OnClickWithoutRender != null )
241+ {
242+ if ( ! IsAsync )
243+ {
244+ IsNotRender = true ;
245+ }
246+ await OnClickWithoutRender ( ) ;
247+ }
248+ if ( OnClick . HasDelegate )
249+ {
250+ await OnClick . InvokeAsync ( ) ;
251+ }
252+ }
253+
234254 /// <summary>
235255 /// 设置按钮是否可用状态
236256 /// </summary>
You can’t perform that action at this time.
0 commit comments