Skip to content

feat(InputDate): add emptyValue for cleared date submissions - #21502

Open
ktz03 wants to merge 1 commit into
baidu:masterfrom
ktz03:feat/input-date-empty-value
Open

feat(InputDate): add emptyValue for cleared date submissions#21502
ktz03 wants to merge 1 commit into
baidu:masterfrom
ktz03:feat/input-date-empty-value

Conversation

@ktz03

@ktz03 ktz03 commented Aug 16, 2026

Copy link
Copy Markdown

Summary

  • Add optional emptyValue to input-date (default '') so clearing the field can submit null or other values instead of always using an empty string.

Fixes #21348

Testing plan

  • Clear an input-date without emptyValue — form value remains '' (backward compatible).
  • Set emptyValue: null, clear the field — form value becomes null.

@github-actions github-actions Bot added the feat label Aug 16, 2026
@github-actions

Copy link
Copy Markdown

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@github-actions github-actions Bot added the fix label Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

希望input-date组件增加emptyValue属性

1 participant