You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently b-numberinput sets it's value to 0 if an user tries to erase the input. We can programmatically initialize the value as null, for example, but once input started, we can't set it internally to null or any empty state.
Steps to reproduce
Put a listener on @input event and check that by erasing the input, the internal value will always be set to 0, even if erased.
Expected behavior
I know this may be the expected way to a numeric input to work and might have something to do with the Number constructor... but in some cases (such as implementing a list of filters), the concept of an empty value is desirable. I really need to have it totally cleared once my user deletes via typing.
The text was updated successfully, but these errors were encountered:
Overview of the problem
Buefy version: 0.8.6
Vuejs version: 3.0.1
OS/Browser: Ubuntu 18.04 / Firefox
Description
Currently
b-numberinput
sets it's value to0
if an user tries to erase the input. We can programmatically initialize the value asnull
, for example, but once input started, we can't set it internally tonull
or any empty state.Steps to reproduce
Put a listener on
@input
event and check that by erasing the input, the internal value will always be set to0
, even if erased.Expected behavior
I know this may be the expected way to a numeric input to work and might have something to do with the Number constructor... but in some cases (such as implementing a list of filters), the concept of an empty value is desirable. I really need to have it totally cleared once my user deletes via typing.
The text was updated successfully, but these errors were encountered: