Skip to content

[input-date-picker] - valueAsDate should offer "" and/or undefined type #13694

@ian13262

Description

@ian13262

monday.com sync: #11003724392

Check existing issues

Which Component

Input Date Picker

Actual Behavior

To reset the calcite-input-date-picker to a blank date, you can set valueAsDate to "" or undefined. However, neither of these options are available in the typings.

Expected Behavior

"" and/or undefined typings should be added.

Reproduction Sample

https://codepen.io/iyouth66/pen/GgqrJqQ

Reproduction Steps

  1. Open https://codepen.io/iyouth66/pen/GgqrJqQ?editors=1010
  2. Observe that you can reset the date picker to a blank "MM/DD/YYYY" display by setting valueAsDate to "" or undefined, but neither of those options is explicitly available in the typings.

Reproduction Version

5.0

Relevant Info

cc @eriklharper per our discussion. Thanks for helping triage this!

Regression?

No response

Priority impact

impact - p2 - want for an upcoming milestone

Impact

AGOL would benefit from updated typings as we "zero out" dates frequently.

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/calcite-ui-icons
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Online

Metadata

Metadata

Assignees

No one assigned

    Labels

    ArcGIS OnlineIssues logged by ArcGIS Online team members.bugBug reports for broken functionality. Issues should include a reproduction of the bug.c-input-date-pickerIssues that pertain to the calcite-input-date-picker componentcalcite-componentsIssues specific to the @esri/calcite-components package.impact - p2 - want for an upcoming milestoneUser set priority impact status of p2 - want for an upcoming milestoneneeds triagePlanning workflow - pending design/dev review.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions