Skip to content

关于 ValidateForm 对同名属性不同对象的验证问题 #5956

@gitapteryx

Description

@gitapteryx

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

只有第一页的TabItem的input组件能触发验证
Image

Image

为了排除编码问题,注释掉第一页的TabItem代码,问题依旧。
Image

Image

排除Tab组件问题,我删掉了Tab组件继续测试,得出的结论是涉及到相同的类,即使是不同对象,只要属性名相同,此时只有第一个input可以有验证。

Image

Expected Behavior

应该Tab组件的三个Item页面都有验证

Interactive render mode

Interactive WebAssembly (Client-side rendering (CSR) using Blazor WebAssembly)

Steps To Reproduce

BootstrapBlazorApp1.zip

Exceptions (if any)

No response

.NET Version

NET9.0

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions