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

Add support for onFocus prop #13364

Open
Tracked by #11903
chiaramooney opened this issue Jun 19, 2024 · 0 comments
Open
Tracked by #11903

Add support for onFocus prop #13364

chiaramooney opened this issue Jun 19, 2024 · 0 comments
Labels
Area: Accessibility Area: Focus enhancement New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric Workstream: Accessibility Ensure RNW Fabric apps are properly accessible.
Milestone

Comments

@chiaramooney
Copy link
Contributor

chiaramooney commented Jun 19, 2024

Documentation

https://reactnative.dev/docs/touchablewithoutfeedback#onblur

Behavior

Handler invoked when component loses focus. This prop is only supported for some of the core component set. Take a look at the sub issues below to see which components should have their onBlur prop implemented.

We could use UIA data to determine when a component has gained focus. Possible helpful APIs:

Implementation Plan

We should:

  1. Store the callback function for a component that has its onBlur prop set.
  2. Create an event handler to monitor when the component incurs a focus event. When the focus event occurs, call the callback function.

To Be Clarified

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Jun 19, 2024
@chrisglein chrisglein added enhancement Area: Accessibility Area: Focus New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric and removed Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) labels Jun 24, 2024
@chrisglein chrisglein added this to the Backlog milestone Jun 24, 2024
@chiaramooney chiaramooney added the Workstream: Accessibility Ensure RNW Fabric apps are properly accessible. label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Accessibility Area: Focus enhancement New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric Workstream: Accessibility Ensure RNW Fabric apps are properly accessible.
Projects
Status: No status
Development

No branches or pull requests

2 participants