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 onBlur prop #13365

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

Add support for onBlur prop #13365

chiaramooney opened this issue Jun 19, 2024 · 2 comments
Labels
Area: Accessibility Area: Focus enhancement New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric
Milestone

Comments

@chiaramooney
Copy link
Contributor

chiaramooney commented Jun 19, 2024

Documentation

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

Behavior

Handler invoked when component is focused. 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 onFocus 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 blur (loss of focus) event. When the blur 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 this to the Backlog milestone Jun 24, 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
@danielayala94
Copy link
Contributor

@chiaramooney My understanding is that #11276 implemented onFocus and onBlur. What's different in this issue compared to the work done in #11276?

@chiaramooney
Copy link
Contributor Author

@danielayala94 It might be a duplicate issue and no further work is needed. We have some of that in the Fabric parity work because some props overlap between the props space and accessibility space. This issue remains open for now until we can verify that all of the blur and focus data is not only blurring and focusing controls but that the information is also correctly being passed to UIA and UIA is firing any relevant events.

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
Projects
None yet
Development

No branches or pull requests

3 participants