Skip to content

DatePicker calendar accepts a new date after the picker becomes disabled #12716

Open

Description

@Xapollon430

Steps to reproduce

  1. Render a DatePicker with a selected date and a button that sets isDisabled after a two-second delay.
  2. Start the timer and open the calendar with the calendar button.
  3. Once the DatePicker is disabled, click another day.

Actual behavior

The calendar stays open and the click changes the date from November 12 to 16. onChange fires even though the input and calendar trigger are disabled.

Expected behavior

Disabling an open DatePicker closes the calendar and preserves the selected date.

Chrome recording

Reproduced against current main at 75b6b80 in Chrome on macOS.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions