CleverCloud / clever-components

Collection of Web Components by Clever Cloud
https://www.clever-cloud.com/doc/clever-components/
Apache License 2.0
215 stars 19 forks source link

various problems in cc-input-number #1004

Open pdesoyres-cc opened 3 months ago

pdesoyres-cc commented 3 months ago

The cc-input-number comes with various issues:

value nullity

When setting the null value, the input shows a value of 0 instead. For having an empty in the input, we need to set a NaN value which is not very user-friendly.

shows the native error tooltip

When the value doesn't respect the min/max boundaries, the native error tooltip is displayed which is something we don't like. Moreover, this tooltip is displayed using the browser language which is not what we may want.

The same thing occurs when the step property is not respected.