File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Razor" >
2
2
3
3
<PropertyGroup >
4
- <Version >8.1.7-beta04 </Version >
4
+ <Version >8.1.7-beta05 </Version >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup Condition =" '$(TargetFramework)' == 'net5.0'" >
Original file line number Diff line number Diff line change 43
43
<div class =" toolbar" >
44
44
@if (ShowDefaultButtons )
45
45
{
46
- <button class = " btn " type =" button" @onclick = " @ SelectAll" >@SelectAllText </button >
47
- <button class = " btn " type =" button" @onclick = " @ InvertSelect" >@ReverseSelectText </button >
48
- <button class = " btn " type =" button" @onclick = " @ Clear" >@ClearText </button >
46
+ <DynamicElement TagName = " button " type =" button" class = " btn " OnClick = " SelectAll" >@SelectAllText </DynamicElement >
47
+ <DynamicElement TagName = " button " type =" button" class = " btn " OnClick = " InvertSelect" >@ReverseSelectText </DynamicElement >
48
+ <DynamicElement TagName = " button " type =" button" class = " btn " OnClick = " Clear" >@ClearText </DynamicElement >
49
49
}
50
50
@ButtonTemplate
51
51
</div >
Original file line number Diff line number Diff line change @@ -211,7 +211,6 @@ public async Task ToggleRow(string val)
211
211
212
212
// 更新选中值
213
213
await SetValue ( ) ;
214
- StateHasChanged ( ) ;
215
214
}
216
215
}
217
216
@@ -282,6 +281,11 @@ private async Task SetValue()
282
281
}
283
282
284
283
PreviousValue = CurrentValueAsString ;
284
+
285
+ if ( ! ValueChanged . HasDelegate )
286
+ {
287
+ StateHasChanged ( ) ;
288
+ }
285
289
}
286
290
287
291
private async Task Clear ( )
You can’t perform that action at this time.
0 commit comments