Optional InputNumber with min value

UI Components for React
Post Reply
vinceh
Posts: 1
Joined: 10 May 2021, 14:33

10 May 2021, 16:12

Hi,

I'm trying to use an InputNumber for an optional field (meaning that the value can be null or undefined), but if a value is set, then the value should be between a min and max value.
This seems to work ok when the minimum value is 0, but not with another minimal value.

If there's a non-null minimal value and I want to leave the field empty (as the value is not required), the value is automatically set the minimal value.

Is there a way to achieve this ?

Thanks

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

16 Jun 2021, 08:26

Hi,

Thanks a lot for your feedback! Could you please create a Github issue for it?

Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests