Replies: 1 comment 1 reply
-
@youthalan Thank you for filing this issue. In order for us to investigate this issue, please provide a minimalistic repro project that illustrates the problem. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there an existing issue for this?
Describe the bug
编写正常的编辑框代码
`
`
调用的页面写上:
<EditTemplate Context="context" > <ShutDownEditComponent Model="context"/> </EditTemplate>
如果调用页面的后台没有定义以下代码:
[Inject] [NotNull] private IDispatchService<bool>? DispatchService { get; set; }//用于编辑框保存时编辑按钮刷新
`public void Dispose()
{
DispatchService.UnSubscribe(Notify);
}
protected override Task OnInitializedAsync()
{
DispatchService.Subscribe(Notify);
return base.OnInitializedAsync();
}
private async Task Notify(DispatchEntry entry)
{
//用于编辑框保存时编辑按钮刷新
await InvokeAsync(table.QueryAsync);
await InvokeAsync(StateHasChanged);
}
`
编辑按钮将不正常,表现为,当点编辑弹窗后,再点保存时,会让工具栏的编辑按钮状态不正常
这个应该在文档里面写清楚。
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8.0.400
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions