WebAudio-Node-Editor / webaudio-node-editor

1 stars 0 forks source link

Improve number input fields #21

Open ruan-xian opened 8 months ago

ruan-xian commented 8 months ago

Number fields automatically insert a 0 when the content inside is cleared (even while we're still editing!). This is kind of annoying, and we might want to fix it by implementing a custom input field instead of using the automatically supplied one.

Possible desired behavior: While editing, if the field ends up with no characters, that's okay and nothing happens visually (but the value of the field is internally treated as zero). If we stop editing the field while it's empty, a zero appears in the field.