dotnetcore / BootstrapBlazor

Bootstrap Blazor is an enterprise-level UI component library based on Bootstrap and Blazor.
https://www.blazor.zone
Apache License 2.0
2.65k stars 301 forks source link

bug(ValidateForm): 验证表单验证后再输入报错:TypeError: Cannot convert undefined or null to object #4694

Open LeiLei-Liu opened 4 hours ago

LeiLei-Liu commented 4 hours ago

Is there an existing issue for this?

Describe the bug

验证表单中的输入框,不填写内容,点击提交,触发验证,后再次输入,当失去焦点后,报错:TypeError: Cannot convert undefined or null to object。

bootstrap.blazor.bundle.min.js:6 Uncaught TypeError: Cannot convert undefined or null to object at Function.values () at cs._isWithActiveTrigger (bootstrap.blazor.bundle.min.js:6:68800) at bootstrap.blazor.bundle.min.js:6:64799 at g (bootstrap.blazor.bundle.min.js:6:2108) at HTMLDivElement.a (bootstrap.blazor.bundle.min.js:6:2486) at s (bootstrap.blazor.bundle.min.js:6:722) at bootstrap.blazor.bundle.min.js:6:2537

Expected Behavior

修复Bug

Interactive render mode

Interactive Auto (Server, then client)

Steps To Reproduce

复现工程见附件,步骤如下:

  1. 点击Counter,后点击页面中的提交按钮;
  2. 2个输入框触发验证后,在任一输入框中输入内容;
  3. 当输入框失去焦点后,会触发异常报错:TypeError: Cannot convert undefined or null to object。

Demo.zip

Exceptions (if any)

No response

.NET Version

.Net 9.0

Anything else?

No response

bb-auto[bot] commented 4 hours ago

@LeiLei-Liu Thank you for filing this issue. In order for us to investigate this issue, please provide a minimalistic repro project that illustrates the problem.