-
Notifications
You must be signed in to change notification settings - Fork 97
fix: update currentlyFocusedNode on focus #680
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: update currentlyFocusedNode on focus #680
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
Skalakid
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Skalakid
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some checks fail, please fix lint errors
parasharrajat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
|
@Skalakid Let's get this merged. Thanks. |
| const handleBlur: FocusEventHandler<HTMLDivElement> = useCallback( | ||
| (event) => { | ||
| const e = event as unknown as NativeSyntheticEvent<TextInputFocusEventData>; | ||
| RNTextInput.State.blurTextInput?.(e.target); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, coming from Expensify/App#72458, the input lose focused when switching between tabs, and we have fixed it here #736.
Details
_currentlyFocusedNodewhen the markdown text input receives focus.Related Issues
Expensify/App#61521
Manual Tests
Linked PRs
Result:
Screen.Recording.2025-05-20.at.17.58.29.mov