Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cdk/a11y): detect fake touchstart events from screen readers #21987

Merged
merged 1 commit into from
Feb 25, 2021

Commits on Feb 23, 2021

  1. fix(cdk/a11y): detect fake touchstart events from screen readers

    We currently have handling for the case where a `mousedown` event is thrown off by a
    fake `mousedown` listener that may be dispatched by a screen reader when an element
    is activated. It turns out that if the device has touch support, screen readers may dispatch
    a fake `touchstart` event instead of a fake `mousedown`.
    
    These changes add another utility function that allows us to distinguish the fake events
    and fix some issues where keyboard focus wasn't being shown because of the fake
    `touchstart` events.
    
    Fixes angular#21947.
    crisbeto committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    e0c153c View commit details
    Browse the repository at this point in the history