maskito icon indicating copy to clipboard operation
maskito copied to clipboard

🐞 - `Number` does not support float `min`-parameter (0 < x < 1)

Open nsbarsukov opened this issue 3 months ago • 0 comments

Which package(s) are the source of the bug?

@maskito/kit

Playground Link

https://maskito.dev/kit/number/API?min=0.2&precision=2

Description

Case 1:

  1. Open https://maskito.dev/kit/number/API?min=5.1&precision=2
  2. Enter 5.1 (min value)
  3. Type Backspace

Decimal digit is erased and new digit can be typed ✅


Case 2:

  1. Open https://maskito.dev/kit/number/API?min=0.1&precision=2
  2. Enter 0.1 (min value)
  3. Type Backspace

It is impossible to erase decimal part ❌

https://github.com/taiga-family/maskito/assets/35179038/04baaa2c-e366-4650-9a50-0c812f74df68

Maskito version

2.3.1

Which browsers have you used?

  • [X] Chrome
  • [ ] Firefox
  • [ ] Safari
  • [ ] Edge

Which operating systems have you used?

  • [X] macOS
  • [ ] Windows
  • [ ] Linux
  • [ ] iOS
  • [ ] Android

nsbarsukov avatar May 13 '24 12:05 nsbarsukov