Skip to content

Persist null values in numeric input - #411

Merged
tcbegley merged 1 commit into
masterfrom
number-input-null-persistence
Jun 26, 2020
Merged

tcbegley merged 1 commit into
masterfrom
number-input-null-persistence

Conversation

@tcbegley

Copy link
Copy Markdown
Collaborator

Numeric input was calling setProps with undefined when input value was not valid, which in Dash should be reserved for uninitialised props and so was not being persisted. Returning null instead, which still gets interpreted as None in Python, but ensures that that value is persisted.

Reported in #283

Numeric input was calling setProps with undefined when input value was
not valid, which in Dash should be reserved for uninitialised props and
so was not being persisted. We return null instead, which still gets
interpreted as None in Python, but ensures that that value is persisted.
@tcbegley
tcbegley merged commit fdeb839 into master Jun 26, 2020
@tcbegley
tcbegley deleted the number-input-null-persistence branch June 26, 2020 06:21
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 this pull request may close these issues.

1 participant