Skip to content

fix(time-picker): prevent disabled popup commits - #17973

Open
Xapollon430 wants to merge 1 commit into
IgniteUI:masterfrom
Xapollon430:codex/disabled-time-picker-dialog
Open

Xapollon430 wants to merge 1 commit into
IgniteUI:masterfrom
Xapollon430:codex/disabled-time-picker-dialog

Conversation

@Xapollon430

Copy link
Copy Markdown

Closes #17972

Description

Disable the time columns and OK action when the picker is disabled. If the overlay closes while disabled, restore the editor from the committed value instead of applying a pending time. The Cancel action can still dismiss the overlay.

Motivation / Context

In Chrome, clicking hour 11 and then OK in an open dialog after disabling the picker changed 10:30 to 11:30 and emitted one model change. With this patch the same actions leave the value at 10:30 and emit no change.

Type of Change

  • Bug fix
  • Documentation
  • Tests
  • Changelog

Components affected

Time Picker

How Has This Been Tested?

  • All 124 Time Picker browser tests passed. The regression failed before the patch.
  • Native Chrome pointer input confirmed the model and event count before and after.
  • Scoped ESLint reported zero errors and eight existing change detection warnings.
  • The full npm test run reported timeouts in unrelated grid filtering tests. The focused Time Picker suite passed.

Test Configuration

  • Angular 22.2.3
  • Chrome and Playwright Chromium on macOS

Screenshots / Recordings

Chrome before and after

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Open Time Picker dialog can commit a time after the picker is disabled

1 participant