添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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

Closed
@syp10000

Description

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

代码如下:

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