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

Is null as a value possible? #53

Closed
rathesDot opened this issue Jan 15, 2018 · 13 comments · May be fixed by #71
Closed

Is null as a value possible? #53

rathesDot opened this issue Jan 15, 2018 · 13 comments · May be fixed by #71

Comments

@rathesDot
Copy link

Hey,

is it possible to add null as a value?

For a more detailed explanation, this is my scenario:

I have a form which is populated by API data and the user should add/change data and then submit it. There we have a <vue-numeric> input as well. When the user edits the field, everything works as expected.

But I have the situation that sometimes the input isn't populated at all and the user doesn't change anything either. In this case the empty value 0 is sent back to the API but it should be null ...

I just saw that there is something like :empty-value now ... But it still expects the the value is a Number, doesn't it?

@ReuDa
Copy link

ReuDa commented Feb 20, 2018

I think this is related to #57

@rathesDot
Copy link
Author

Yes, there something like an empty-state is missing ... And with it to get back to that empty-state as well.

@julienmonty
Copy link

Same issue here. Any update ?

@fergardi
Copy link

This will be absolutely necessary for me as well, +1.

@zezic
Copy link

zezic commented May 23, 2018

Same here. May be merge in this fork: https://github.com/nettix-oy/vue-numeric/tree/nettix-null-empty-value ?

@felipedgarcia
Copy link

@zezic This fork that you mentioned has what I need but just for integers. For decimals it isn't working yet. 😢 It's also necessary for me.

@vizcay
Copy link

vizcay commented May 27, 2018

I'm on the same boat, I need a numeric input with the particularity that 0 should be displayed as emtpy.. I would be able to do that if I can set the input's value to null, but there is no way do it as far as I can see.

@Aterr
Copy link

Aterr commented Aug 17, 2018

still waiting for it also.

@egeersoz
Copy link

Same here. Any updates?

@musman92
Copy link

any update?

@rathesDot
Copy link
Author

Since there doesn't seem to be any feedback, maybe it is time to create a fork and fix it? In my case, I'm not working on that project anymore, so there is no need for me there.

@rathesDot
Copy link
Author

Since there does not seem to be any progress on it, I am gonna close this issue. Feel free to re-open it if someone is gonna pick this up and need more input.

@skironDotNet
Copy link

definitely needed null = empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.