Родитель
10e0e5823b
Коммит
4fdb5829ed
|
@ -1,23 +0,0 @@
|
|||
@using Microsoft.FluentUI.AspNetCore.Components
|
||||
<FluentStack Orientation="Orientation.Vertical">
|
||||
<FluentCheckbox Value="@Value.IsChecked"
|
||||
ValueChanged="(isChecked) => ChangeDummyAsync(Value with {IsChecked = isChecked})">Checkbox</FluentCheckbox>
|
||||
|
||||
</FluentStack>
|
||||
|
||||
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter, EditorRequired]
|
||||
public required Dummy Value { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public EventCallback<Dummy> ValueChanged { get; set; }
|
||||
|
||||
private Task ChangeDummyAsync(Dummy dummy)
|
||||
{
|
||||
return ValueChanged.InvokeAsync(dummy);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
// ------------------------------------------------------------------------
|
||||
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
namespace FluentUI.Demo.Shared.Pages.Lab;
|
||||
public record Dummy(bool IsChecked);
|
|
@ -1,15 +1 @@
|
|||
@page "/issue-tester"
|
||||
|
||||
<FluentTabs>
|
||||
<FluentTab Label="Tab1">
|
||||
<CheckboxBug @bind-Value=@dummy />
|
||||
</FluentTab>
|
||||
</FluentTabs>
|
||||
|
||||
|
||||
@code {
|
||||
|
||||
private Dummy dummy = new Dummy(false);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -374,7 +374,7 @@ public abstract partial class FluentInputBase<TValue> : FluentComponentBase, IDi
|
|||
{
|
||||
UpdateAdditionalValidationAttributes();
|
||||
|
||||
StateHasChanged();
|
||||
InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
private void UpdateAdditionalValidationAttributes()
|
||||
|
|
Загрузка…
Ссылка в новой задаче