Skip to content

Datepicker: Allow controlled clearing of input #2965

Open
@interactivellama

Description

@interactivellama
Contributor

Currently, on initial load the input is uncontrolled and creates a clear empty string value. There currently is not a way to reset to an empty string once the value is set.

One proposal is to allow a controlled component reset to input empty string by using value={null}.

Activity

changed the title [-]Datepicker: Clear input by setting value [/-] [+]Datepicker: Allow controlled clearing of input[/+] on Oct 4, 2021
stale

stale commented on Apr 18, 2022

@stale

This issue has been automatically marked as stale, because it has not had recent activity. It will be closed if no further activity occurs. Maintainers are responsible for tech debt and project health. This is most likely a new components or component feature request. Please submit a pull request for or request feedback on this feature. Thank you.

linked a pull request that will close this issue on Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @interactivellama

      Issue actions

        Datepicker: Allow controlled clearing of input · Issue #2965 · salesforce/design-system-react