Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't erase b-numberinput value. #1963

Closed
mateuswetah opened this issue Nov 6, 2019 · 0 comments
Closed

Can't erase b-numberinput value. #1963

mateuswetah opened this issue Nov 6, 2019 · 0 comments

Comments

@mateuswetah
Copy link
Contributor

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 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.

@jtommy jtommy closed this as completed in 702d6aa Nov 12, 2019
LeoMouyna pushed a commit to LeoMouyna/buefy that referenced this issue Jan 6, 2020
LeoMouyna pushed a commit to LeoMouyna/buefy that referenced this issue Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant