rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
1.32k stars 38 forks source link

NumberInput Field with Decimals != 0 Changes Input When Numbers Are Entered "Slowly" #60

Closed Sn3llius closed 3 months ago

Sn3llius commented 3 months ago

Describe the bug

When using a NumberInput field with decimals set to a value other than 0, the input behaves unexpectedly if numbers are entered slowly. Specifically, when decimals is set to 2, entering the number "20" results in "2.000" and then immediately changes to "2.00".

Steps to Reproduce

  1. Create a NumberInput field and set decimals to a value other than 0 (e.g., 2).
  2. Begin entering a number, such as "20", into the field.
  3. Enter the numbers at a "slow" pace.

Screenshots/Videos

No response

Operating System

No response

What browsers are you seeing the problem on?

Chrome, Edge

Browser version

No response

What device are you using?

No response

Additional context

No response

mad-moo commented 3 months ago

I believe this has been fixed, correct?