svelteuidev / svelteui

SvelteUI Monorepo
https://svelteui.dev
MIT License
1.27k stars 63 forks source link

Empty `NumberInput` inserts `NaN` into input on focus blur #394

Closed notramo closed 1 year ago

notramo commented 1 year ago

What package has an issue

@svelteuidev/core

A clear and concise description of what the bug is

When moving focus away from a NumberInput with no entered number, NaN is inserted automatically. This could confuse the user.

In which browser(s) did the problem occur?

No response

Steps To Reproduce

  1. Add NumberInput to the page
  2. Focus it using mouse/Tab/etc.
  3. Move focus away without entering any number

Do you know how to fix the issue

No

Are you willing to participate in fixing this issue and create a pull request with the fix

No

Relevant Assets

No response