Closed bernhardoj closed 1 month ago
Removed autoFocus from the useEffect deps so it only auto focus on mount.
autoFocus
useEffect
https://github.com/Expensify/App/issues/42645
Before:
https://github.com/Expensify/react-native-live-markdown/assets/50919443/74f976c0-5c3b-46d8-aeb3-80099ccba400
After:
https://github.com/Expensify/react-native-live-markdown/assets/50919443/18330d30-1e78-4a57-9b3a-909f52895b0b
@bernhardoj Thanks for the PR!
LGTM but let's wait for @Skalakid's or @BartoszGrajdek's approval prior to merging.
Details
Removed
autoFocus
from theuseEffect
deps so it only auto focus on mount.Related Issues
https://github.com/Expensify/App/issues/42645
Manual Tests
autoFocus
state to the example appBefore:
https://github.com/Expensify/react-native-live-markdown/assets/50919443/74f976c0-5c3b-46d8-aeb3-80099ccba400
After:
https://github.com/Expensify/react-native-live-markdown/assets/50919443/18330d30-1e78-4a57-9b3a-909f52895b0b