Skip to content

Commit

Permalink
Merge pull request #57444 from wildan-m/wildan/fix/55835-cursor-hidden
Browse files Browse the repository at this point in the history
Fix: Android - Tax - After entering zero dot cursor thickness is changed
  • Loading branch information
rafecolton authored Mar 4, 2025
2 parents 4cd92af + e24c596 commit fc643d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/TextInput/BaseTextInput/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ function BaseTextInput(
if (e.nativeEvent.layout.width === 0 && e.nativeEvent.layout.height === 0) {
return;
}
setTextInputWidth(e.nativeEvent.layout.width);
// Add +2 to width so that cursor is not cut off / covered at the end of text content
setTextInputWidth(e.nativeEvent.layout.width + 2);
setTextInputHeight(e.nativeEvent.layout.height);
}}
>
Expand Down

0 comments on commit fc643d5

Please sign in to comment.