Is `null` as a value possible?
See original GitHub issueHey,
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?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:13
- Comments:13
Top Results From Across the Web
null - JavaScript - MDN Web Docs - Mozilla
The null value represents the intentional absence of any object value. It is one of JavaScript's primitive values and is treated as falsy...
Read more >Interpretations of NULL - LinkedIn
Interpretations of NULL ; 1 - Unknown (Any value). It is not known whether there is a value or not, and if there...
Read more >7 Things You Should Know About NULL Values - Biztory
A NULL value is a special marker used in SQL to indicate that a data value does not exist in the database. In...
Read more >Converting null literal or possible null value to non-nullable type
So destinationProperty can become null. So the solution would be to declare it as nullable: PropertyInfo? destinationProperty = .
Read more >SQL NULL Values - IS NULL and IS NOT NULL - W3Schools
If a field in a table is optional, it is possible to insert a new record or update a record without adding a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same here. May be merge in this fork: https://github.com/nettix-oy/vue-numeric/tree/nettix-null-empty-value ?
This will be absolutely necessary for me as well, +1.