question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is `null` as a value possible?

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:13
  • Comments:13

github_iconTop GitHub Comments

3reactions
zeziccommented, May 23, 2018
3reactions
fergardicommented, May 23, 2018

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found