Skip to content

fix(ui5-date-picker): sync disabled state to inner input immediately on change - #14019

Open
unazko wants to merge 1 commit into
mainfrom
daterange_picker_disabled
Open

fix(ui5-date-picker): sync disabled state to inner input immediately on change#14019
unazko wants to merge 1 commit into
mainfrom
daterange_picker_disabled

Conversation

@unazko

@unazko unazko commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Issue:

When disabled was toggled via a framework (e.g. React), the host element updated synchronously but the inner only updated in the next animation frame. This gap allowed the browser's accessibility tree to snapshot a stale disabled state that never cleared, leaving the inner input reported as disabled even after the component was re-enabled.

Solution:

Override onInvalidation to propagate disabled to _dateTimeInput immediately when the property changes, before the scheduled re-render fires. This closes the one-frame gap and ensures the accessibility tree always reflects the correct state.

Fixes #14006

…on change

Issue: When  was toggled via a framework (e.g. React), the host
element updated synchronously but the inner  only updated
in the next animation frame. This gap allowed the browser's accessibility tree
to snapshot a stale disabled state that never cleared, leaving the inner input
reported as disabled even after the component was re-enabled.

Solution: Override 'onInvalidation' to propagate 'disabled' to '_dateTimeInput'
immediately when the property changes, before the scheduled re-render fires.
This closes the one-frame gap and ensures the accessibility tree always reflects
the correct state.

Fixes #14006
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

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.

[ui5-daterange-picker]: "unavailable" still will be announced after ui5-daterange-picker changed from disabled to enabled

1 participant