Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextInput mode=outline has floating label truncated #4537

Open
gregfenton opened this issue Oct 29, 2024 · 4 comments
Open

TextInput mode=outline has floating label truncated #4537

gregfenton opened this issue Oct 29, 2024 · 4 comments
Labels

Comments

@gregfenton
Copy link
Contributor

gregfenton commented Oct 29, 2024

Current behaviour

In v5, TextInput with mode="outline" has its floating label truncated. See image:

Image

Expected behaviour

The full label is displayed, not truncated

How to reproduce?

See this Snack.

If you change the version of RNP to v4, the issue goes away (in the Snack editor, simply modify the version value in package.json as per the images below).

Preview

RNP v4:

Image

RNP v5:

Image

Your Environment

See Snack.

@gregfenton gregfenton added the bug label Oct 29, 2024
@gedu
Copy link
Contributor

gedu commented Oct 29, 2024

Hey, is it only happening on web? We fixed this already: #4414

@gregfenton
Copy link
Contributor Author

gregfenton commented Oct 29, 2024

Hey, is it only happening on web? We fixed this already: #4414

No, it is happening on iOS as well. You can easily verify this with the above Snack. I am seeing the exact same (mis)behaviour in our Expo app, that's why the Snack was created as a minimal reproducible.

Image

@GopikaSivadas
Copy link

Same issue. Do we have any solution yet? Fixed after downgrading to 5.1.3

@gregfenton
Copy link
Contributor Author

gregfenton commented Oct 31, 2024

Same issue. Do we have any solution yet? Fixed after downgrading to 5.1.3

Can confirm via the above linked Snack. Though the longer label displays in 5.1.3, the border cuts into that label (at least on Web -- seems to be fine with 5.1.3 on Android and iOS)

Web:

Image

iOS (and Android):

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants