Skip to content

TimePicker options can change the time after the picker becomes disabled #12717

Open

Description

@Xapollon430

Steps to reproduce

  1. Render a TimePicker with a value of 10:00 and a button that sets isDisabled after a two-second delay.
  2. Start the timer and click the time input to open the options.
  3. Once the TimePicker is disabled, select 11:00 from the open list.

Actual behavior

The list stays open. Selecting the option changes the time to 11:00 and fires onChange.

Expected behavior

Disabling the open TimePicker closes the list. The selected time stays unchanged.

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