pnp / sp-dev-fx-property-controls

Reusable SPFx property pane controls - Open source initiative
https://pnp.github.io/sp-dev-fx-property-controls/
MIT License
233 stars 151 forks source link

PropertyFieldNumber: validation does not work as expected #572

Open katehellomartin opened 1 year ago

katehellomartin commented 1 year ago

Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your needs please complete the below template to ensure we have the details to help. Thanks!

Please check out the documentation to see if your question is already addressed there. This will help us ensure our documentation is up to date.

Category

Version

Please specify what version of the library you are using: [3.13.0]

Expected / Desired Behavior / Question

The PropertyFieldNumber control does not work as expected, link to the documentation https://pnp.github.io/sp-dev-fx-property-controls/controls/PropertyFieldNumber/. I copied the standard configuration without additional onGetErrorMessage property. The validation works if I enter 'hello123', and it reacts with the error "The value should be a number, actual is: hello123." but if I enter '123hello' it does not throw any error. Is it a bug?

ghost commented 1 year ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.