MudBlazor/MudBlazor

Numeric Field does not support Percent format

Aperta

#11.241 aperta il 26 apr 2025

 (6 commenti) (4 reazioni) (0 assegnatari)C# (1631 fork)batch import
buggood first issuehas workaround

Metriche repository

Star
 (10.394 stelle)
Metriche merge PR
 (Merge medio 6g 6h) (108 PR mergiate in 30 g)

Descrizione

Things to check

  • I have searched the existing issues for this bug
  • To rule out a caching problem I made sure the bug also happens in an incognito tab

Bug type

Component

Component name

MudNumericField

What happened?

Clicking away from a MudNumericField with "P" set as the format causes the component to say "Not a valid number"

Expected behavior

Display the number as a percent

Reproduction link

https://try.mudblazor.com/snippet/wYcJkylsqmKyZTHU

Reproduction steps

  1. Type a number in the field.
  2. Click away to cause the OnBlur to occur
  3. Error ...

Relevant log output

Version (bug)

8.2.0 - 8.5.1

Version (working)

No response

What browsers are you seeing the problem on?

Chrome

On which operating systems are you experiencing the issue?

Windows

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

Guida contributor