Skip to content

feat(BootstrapInputNumber): improve step functionality #8084

@Tony-ST0754

Description

@Tony-ST0754

Which class is this unit test associated with?

BlazorApp3.zip

问题描述

在全局配置项中设置如下:

"BootstrapBlazorOptions": {
  "StepSettings": {
    "Decimal": "0.01"
  }
}

不管字段属性有没有设置必填验证,点保存按钮时都会出现如下图所示奇怪的验证提示,但该提示内容在BB源码中找不到任何相关字符,且由于该错误提示拦截,导致组件中的保存按钮被设置了disable属性,挂载BB源码也debug了下到ValidateBase这个里面也没有错误消息。但将全局配置中 "Decimal": "0.01"这项删除掉,就正常了;
如果在BootstrapInputNumber组件上设置了Step属性,也会有这个提示

注:上面提供的demo中BB的版本为10.4,测试了最新版10.7也一样有这个现象
Image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions