Skip to content

Conversation

@lnobrega-canarie
Copy link

fixes #191

@lnobrega-canarie lnobrega-canarie marked this pull request as draft October 26, 2025 18:43
@lnobrega-canarie lnobrega-canarie marked this pull request as ready for review October 27, 2025 02:49
@DutchBen
Copy link
Collaborator

@lnobrega-canarie thank you so much for spotting this and for the proposed fix. I have added a suggestion to make it slightly more general so other falsy values don't get nixed aswell. Could you check if this works for you to?

Copy link
Author

@lnobrega-canarie lnobrega-canarie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typing a number then backspacing until the field is empty causes an error.

next-issue next-issue-detail

onChange={onChangeHandle}
onBlur={onBlur}
value={value || ''}
value={!_.isUndefined(value) ? value : ''}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want null to pass through as well ?

If not then I would suggest just using value ?? ''

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes Null could be a valid option I think

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.

int field conceals zero

3 participants