File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/BootstrapBlazor/Components/Dialog Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -146,12 +146,9 @@ public async ValueTask ToggleLoading(bool state)
146146 if ( ! IsTracking )
147147 {
148148 builder . OpenComponent < DialogCloseButton > ( 20 ) ;
149- builder . AddAttribute ( 21 , nameof ( DialogCloseButton . Icon ) , CloseButtonIcon ) ;
150- builder . AddAttribute ( 22 , nameof ( DialogCloseButton . Text ) , CloseButtonText ) ;
151- if ( OnCloseAsync != null )
152- {
153- builder . AddAttribute ( 22 , nameof ( DialogCloseButton . OnClickWithoutRender ) , OnCloseAsync ) ;
154- }
149+ builder . AddAttribute ( 21 , nameof ( Button . Icon ) , CloseButtonIcon ) ;
150+ builder . AddAttribute ( 22 , nameof ( Button . Text ) , CloseButtonText ) ;
151+ builder . AddAttribute ( 23 , nameof ( Button . OnClickWithoutRender ) , OnCloseAsync ) ;
155152 builder . CloseComponent ( ) ;
156153 }
157154 builder . OpenComponent < Button > ( 30 ) ;
You can’t perform that action at this time.
0 commit comments