Repository navigation
fix(TimePicker): close time options when disabled - #12719
Xapollon430 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. WalkthroughThe TimePicker now initializes its options menu as closed when disabled. If it becomes disabled while open, it closes the menu and clears the focused index. Toggle and selection actions do not proceed while disabled. A test covers disabling, re-enabling, and selecting an option. ChangesTimePicker disabled-state handling
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk:
|
What: Closes #12717
Close the time options when the picker becomes disabled and ignore option selections while it is disabled.
To reproduce, open TimePicker and disable it from the parent while the popup is still open. Try selecting 11:00. The selected time should stay unchanged and the change callback should not fire. Re-enable the picker and select the option again to check normal behavior.
Chrome recording
The regression fails on current main and passes with the fix. The DatePicker and TimePicker Jest suites passed together with 32 tests and one existing skip, using a local Jest configuration for the existing Babel transform, setup, and published workspace dependencies.
Summary by CodeRabbit