quillforms / quillforms

Open Source TypeForm Alternative Based on React JS and Typescript | Best Typeform Clone | Conversational Multi Step Form
https://www.quillforms.com
GNU Lesser General Public License v3.0
476 stars 99 forks source link

Missing support for floats in 'number' block #153

Open Pav0l opened 11 months ago

Pav0l commented 11 months ago

Describe the bug Hi there, it seems the number block does not support floats.

The issue seems to be connected to the number change handler validation around here.

To Reproduce Steps to reproduce the behavior:

  1. Go to code example in "Getting Started" docs: https://codesandbox.io/s/quill-forms-example-20uuf
  2. Fill out the form, until you get to the number block
  3. Try to enter any float value
  4. See nothing happens, only integer is considered a valid input

Expected behavior number blocks support float values

Desktop (please complete the following information):