Skip to content

Commit

Permalink
Merge pull request Expensify#23286 from s-alves10/fix/issue-21271
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrous authored Jul 24, 2023
2 parents 2c15e97 + 6c1a2d7 commit c3fd1ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/TextInput/BaseTextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ function BaseTextInput(props) {
setTextInputHeight(e.nativeEvent.layout.height);
}}
>
{props.value || props.placeholder}
{/* \u200B added to solve the issue of not expanding the text input enough when the value ends with '\n' (https://github.com/Expensify/App/issues/21271) */}
{props.value ? `${props.value}${props.value.endsWith('\n') ? '\u200B' : ''}` : props.placeholder}
</Text>
)}
</>
Expand Down

0 comments on commit c3fd1ea

Please sign in to comment.