React-native-paper: TextInput's placeholder is not being displayed initially with multiline set to true on iOS

Created on 19 Nov 2019  路  13Comments  路  Source: callstack/react-native-paper


Current behaviour

On iOS, when using , if multiline is true and label and placeholder both have a value, the placeholder is not displayed when you click on the input filed. If you type something in, selected it all, and delete it, then the placeholder is displayed and works as expected.

Expected behaviour

The placeholder should be displayed after clicking on the input field.

Code sample

https://snack.expo.io/S1_Ags-nB

Screenshots (if applicable)

N/A

What have you tried

At first I was passing in the values with props, so I tried setting them directly as strings, but it didn't seem to matter either way.

Your Environment

| software | version
| --------------------- | -------
| ios or android | ios
| react-native | 0.60.5
| react-native-paper | 3.1.1
| node | 11.15.0
| npm or yarn | npm
| expo sdk | 35.0.0

Stale TextInput bug needs more info

Most helpful comment

@ovbm My team has not prioritized finding a workaround, but I can confirm the issue remains. I tested again using the example Snack, running 3.10.1.

All 13 comments

@ImTheC Can you check if it still occurs in paper v3.3.0?

@Trancever This behavior still exists as of v3.5.1, running the TextInput example on Snack, only adding multiline and a placeholder string. Placeholder works as expected without multiline.

We are experiencing the same issue on iOS. Paper v 3.6.0

If you enter two lines of text into the text input and then erase them, then you will see the placeholder. See the video for an example of this behavior.

RNP_multiline_textinput_placeholder

Hello 馃憢, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.

Having this same issue. Was anyone able to resolve it? Using 3.8.0, seeing the same behavior as @jeffjvick

@ovbm My team has not prioritized finding a workaround, but I can confirm the issue remains. I tested again using the example Snack, running 3.10.1.

Still present

We might want to re-open this issues as it still occurs ?

This is still the issue in latest version

+1

Still having this issue

I am having the same issue
@kotavy did you find a workaround?

in IOS build I am facing same issue Placeholder is missing, can some one help me?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ButuzGOL picture ButuzGOL  路  3Comments

ButuzGOL picture ButuzGOL  路  4Comments

sritharanpalani picture sritharanpalani  路  4Comments

mihaidaviddev picture mihaidaviddev  路  3Comments

alikazemkhanloo picture alikazemkhanloo  路  4Comments