-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36195 from tsa321/wrFocusWhCJ
Fix focus is in edit report action after ctrl+k when delete confirm modal appears
- Loading branch information
Showing
4 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {InteractionManager} from 'react-native'; | ||
import type FocusEditAfterCancelDelete from './types'; | ||
|
||
const focusEditAfterCancelDelete: FocusEditAfterCancelDelete = (textInputRef) => { | ||
InteractionManager.runAfterInteractions(() => textInputRef?.focus()); | ||
}; | ||
|
||
export default focusEditAfterCancelDelete; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import type FocusEditAfterCancelDelete from './types'; | ||
|
||
const focusEditAfterCancelDelete: FocusEditAfterCancelDelete = () => {}; | ||
|
||
export default focusEditAfterCancelDelete; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import type {TextInput} from 'react-native'; | ||
|
||
type FocusEditAfterCancelDelete = (inputRef: TextInput | HTMLTextAreaElement | null) => void; | ||
|
||
export default FocusEditAfterCancelDelete; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters