Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
christianwen committed Dec 30, 2024
1 parent 3351e31 commit 37e6aaa
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -649,10 +649,11 @@ function ComposerWithSuggestions(
}, [focus, prevIsFocused, editFocused, prevIsModalVisible, isFocused, modal?.isVisible, isNextModalWillOpenRef, shouldAutoFocus]);

useEffect(() => {
if (prevIsFocused && !isFocused && !showSoftInputOnFocus) {
setShowSoftInputOnFocus(true);
if (prevIsFocused || !isFocused || showSoftInputOnFocus) {
return;
}
}, [isFocused, prevIsFocused, showSoftInputOnFocus]);
setShowSoftInputOnFocus(true);
}, [isFocused, prevIsFocused, showSoftInputOnFocus, setShowSoftInputOnFocus]);

useEffect(() => {
// Scrolls the composer to the bottom and sets the selection to the end, so that longer drafts are easier to edit
Expand Down Expand Up @@ -701,7 +702,7 @@ function ComposerWithSuggestions(

useEffect(() => {
// We use the tag to store the native ID of the text input. Later, we use it in onSelectionChange to pick up the proper text input data.
tag.set(findNodeHandle(textInputRef.current) ?? -1);
tag.set(findNodeHandle(textInputRef.current) ?? CONST.);

Check failure on line 705 in src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Identifier expected.
}, [tag]);

useFocusedInputHandler(
Expand Down

0 comments on commit 37e6aaa

Please sign in to comment.