vitmalina / w2ui

UI widgets for modern apps. Data table, forms, toolbars, sidebar, tabs, tooltips, popups. All under 120kb (gzipped).
http://w2ui.com
MIT License
2.67k stars 727 forks source link

w2form float field does not allow to input zero after the separator #2549

Closed dv1x3r closed 3 months ago

dv1x3r commented 3 months ago

Short description w2form float field does not allow to input zero straight after the separator.

What is current behavior Trying to input 1.05 turns it to 1

What is desired behavior w2form float field will allow to input 1.05

Link to jsfidle/codepan with sample code https://w2ui.com/web/demos/#/form/3

Steps to reproduce or sample

  1. Create a w2form with a float field with { type: 'float', options: { precision: 2 } }
  2. Enter 1.05