Skip to content

🐛 [Bug]: input-number 小数限制3或者5不能输入32.3 #368

@w-wen-n

Description

@w-wen-n

Version

^18.0.0

Angular Version

^19.2.2

Link to minimal reproduction

小数限制3或者5不能输入32.3,输入32.3时变成32.299和32.29999,小数限制2两位或者四位就可以

<d-input-number
                            [dValidateRules]="{
                              errorStrategy: 'pristine',
                              validators: [{ required: true }]
                            }"
                            [decimalLimit]="3"
                            [min]="0"
                            [size]="'sm'"
                            class="full-width"
                            formControlName="skuSizeLength"
                          />

chrome 版本142.0.7444.60

Step to reproduce

Image

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions