lovasoa / SQLpage

SQL-only webapp builder, empowering data analysts to build websites and applications quickly
https://sql.ophir.dev
MIT License
882 stars 62 forks source link

Misleading docs and form field type "number" #401

Closed pchemguy closed 3 weeks ago

pchemguy commented 3 weeks ago

The "form" component docs indicates that a field of type "number" accepts only numbers. In fact, it only accepts whole numbers. At the very least, I would expect that the docs should be updated to clarify this matter.

lovasoa commented 3 weeks ago

Hi! You can use the 'step' property to control the precision of numbers entered into the field. It is indeed 1 by default, but you can set it to 0.01 and you will be able to set your input to a floating point number.

pchemguy commented 3 weeks ago

I see, thank you