File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
src/Masa.Stack.Components/Shared/PureComponents/LabeledRadios
tests/Masa.Stack.Components.Standalone.TestApp Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 116116
117117 if (item != null )
118118 {
119- _selectedKey = item .Instance ? .Value ;
120- await SelectedKeyChanged (_selectedKey );
119+ var currentKey = item .Instance ? .Value ;
120+ if (currentKey != _selectedKey )
121+ {
122+ await SelectedKeyChanged (currentKey );
123+ }
121124 }
122125
123126 await CallSlider ();
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22
33 <PropertyGroup >
4- <TargetFramework >net6 .0</TargetFramework >
4+ <TargetFramework >net8 .0</TargetFramework >
55 <Nullable >enable</Nullable >
66 <ImplicitUsings >enable</ImplicitUsings >
77 </PropertyGroup >
Original file line number Diff line number Diff line change 3434
3535<script src =" _framework/blazor.server.js" ></script >
3636<script src =" _content/Masa.Blazor/js/masa-blazor.js" ></script >
37+ <script src =" _content/Masa.Stack.Components/js/components.js" ></script >
3738</body >
3839</html >
Original file line number Diff line number Diff line change 1+ using Masa . Stack . Components . JsInterop ;
12using Microsoft . AspNetCore . Components ;
23using Microsoft . AspNetCore . Components . Web ;
34
45var builder = WebApplication . CreateBuilder ( args ) ;
56builder . Services . AddRazorPages ( ) ;
67builder . Services . AddServerSideBlazor ( ) ;
78builder . Services . AddMasaBlazor ( ) ;
9+ builder . Services . AddScoped < JsDotNetInvoker > ( ) ;
810
911var app = builder . Build ( ) ;
1012
You can’t perform that action at this time.
0 commit comments