ant-design-blazor / ant-design-blazor

🌈A set of enterprise-class UI components based on Ant Design and Blazor.

Home Page:https://antblazor.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InputPassword 组件登录后出现There is no browser renderer with ID 0.

syp10000 opened this issue · comments

我在winform中集成了blazor,winform 启动的时候会先打开登录,然后再登录后,进行跳转到相应的页面,现在出现登录页面使用InputPassword组件后,登录后跳转出错:There is no browser renderer with ID 0.,如果把InputPassword换成 Input,登录不会报错

代码如下:

image

Model="@model" LabelColSpan="6" WrapperColSpan="18" OnFinish="OnFinish" OnFinishFailed="OnFinishFailed"> <FormItem Label="用户名"> <Input Placeholder="请输入用户名" @bind-Value="@context.Username" Size="@InputSize.Large"/> </FormItem> <FormItem Label="密码"> <InputPassword @bind-Value="@context.Password" Placeholder="请输入密码" Size="@InputSize.Large" /> </FormItem> <FormItem WrapperColOffset="6" WrapperColSpan="6"> <Button Type="@ButtonType.Primary" HtmlType="submit" Style="width:200px;height:50px;font-size:20px;font-weight:700;"> 登 录 </Button> </FormItem> </Form> navigationManager.NavigateTo("/Welcome", true)跳转后的界面错误如下

image

update version Microsoft.Web.WebView2.dll and Microsoft.AspNetCore.Components.WebView.dll solve it ,run ok