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

fix: input label not visible on ios if multiline, fixes #4482 #4497

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/TextInput/Label/InputLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const InputLabel = (props: InputLabelProps) => {
// This gives the effect of animating the color, but allows us to use native driver
<View
pointerEvents="none"
style={[StyleSheet.absoluteFill, styles.overflow]}
style={[StyleSheet.absoluteFill, styles.overflow, styles.labelContainer]}
>
<Animated.View
pointerEvents="none"
Expand Down
27 changes: 27 additions & 0 deletions src/components/__tests__/__snapshots__/TextInput.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ exports[`call onPress when affix adornment pressed 1`] = `
{
"overflow": "hidden",
},
{
"zIndex": 3,
},
]
}
>
Expand Down Expand Up @@ -361,6 +364,9 @@ exports[`correctly applies a component as the text label 1`] = `
{
"overflow": "hidden",
},
{
"zIndex": 3,
},
]
}
>
Expand Down Expand Up @@ -601,6 +607,9 @@ exports[`correctly applies cursorColor prop 1`] = `
{
"overflow": "hidden",
},
{
"zIndex": 3,
},
]
}
>
Expand Down Expand Up @@ -825,6 +834,9 @@ exports[`correctly applies default textAlign based on default RTL 1`] = `
{
"overflow": "hidden",
},
{
"zIndex": 3,
},
]
}
>
Expand Down Expand Up @@ -1042,6 +1054,9 @@ exports[`correctly applies height to multiline Outline TextInput 1`] = `
{
"overflow": "hidden",
},
{
"zIndex": 3,
},
]
}
>
Expand Down Expand Up @@ -1306,6 +1321,9 @@ exports[`correctly applies paddingLeft from contentStyleProp 1`] = `
{
"overflow": "hidden",
},
{
"zIndex": 3,
},
]
}
>
Expand Down Expand Up @@ -1532,6 +1550,9 @@ exports[`correctly applies textAlign center 1`] = `
{
"overflow": "hidden",
},
{
"zIndex": 3,
},
]
}
>
Expand Down Expand Up @@ -1756,6 +1777,9 @@ exports[`correctly renders left-side affix adornment, and right-side icon adornm
{
"overflow": "hidden",
},
{
"zIndex": 3,
},
]
}
>
Expand Down Expand Up @@ -2182,6 +2206,9 @@ exports[`correctly renders left-side icon adornment, and right-side affix adornm
{
"overflow": "hidden",
},
{
"zIndex": 3,
},
]
}
>
Expand Down