Skip to content

Fix useInput default value overrides null#10665

Merged
slax57 merged 1 commit intomasterfrom
fix-use-input-default-value
Apr 14, 2025
Merged

Fix useInput default value overrides null#10665
slax57 merged 1 commit intomasterfrom
fix-use-input-default-value

Conversation

@djhi
Copy link
Contributor

@djhi djhi commented Apr 14, 2025

Problem

When a record has a field set to null, useInput overrides it with its default value.

Solution

Don't override null

How To Test

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • The PR includes unit tests (if not possible, describe why)
  • The PR includes one or several stories (if not possible, describe why)
  • The documentation is up to date

Also, please make sure to read the contributing guidelines.

@djhi djhi added the RFR Ready For Review label Apr 14, 2025
@slax57 slax57 self-requested a review April 14, 2025 14:08
@slax57 slax57 added this to the 5.7.3 milestone Apr 14, 2025
@slax57 slax57 merged commit 8e73cbc into master Apr 14, 2025
16 checks passed
@slax57 slax57 deleted the fix-use-input-default-value branch April 14, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RFR Ready For Review

Development

Successfully merging this pull request may close these issues.

2 participants