Skip to content

Commit 254333f

Browse files
fix: input label not visible on ios if multiline, fixes #4482
1 parent 9162a1f commit 254333f

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

src/components/TextInput/Label/InputLabel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const InputLabel = (props: InputLabelProps) => {
138138
// This gives the effect of animating the color, but allows us to use native driver
139139
<View
140140
pointerEvents="none"
141-
style={[StyleSheet.absoluteFill, styles.overflow]}
141+
style={[StyleSheet.absoluteFill, styles.overflow, styles.labelContainer]}
142142
>
143143
<Animated.View
144144
pointerEvents="none"

src/components/__tests__/__snapshots__/TextInput.test.tsx.snap

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ exports[`call onPress when affix adornment pressed 1`] = `
6262
{
6363
"overflow": "hidden",
6464
},
65+
{
66+
"zIndex": 3,
67+
},
6568
]
6669
}
6770
>
@@ -361,6 +364,9 @@ exports[`correctly applies a component as the text label 1`] = `
361364
{
362365
"overflow": "hidden",
363366
},
367+
{
368+
"zIndex": 3,
369+
},
364370
]
365371
}
366372
>
@@ -601,6 +607,9 @@ exports[`correctly applies cursorColor prop 1`] = `
601607
{
602608
"overflow": "hidden",
603609
},
610+
{
611+
"zIndex": 3,
612+
},
604613
]
605614
}
606615
>
@@ -825,6 +834,9 @@ exports[`correctly applies default textAlign based on default RTL 1`] = `
825834
{
826835
"overflow": "hidden",
827836
},
837+
{
838+
"zIndex": 3,
839+
},
828840
]
829841
}
830842
>
@@ -1042,6 +1054,9 @@ exports[`correctly applies height to multiline Outline TextInput 1`] = `
10421054
{
10431055
"overflow": "hidden",
10441056
},
1057+
{
1058+
"zIndex": 3,
1059+
},
10451060
]
10461061
}
10471062
>
@@ -1306,6 +1321,9 @@ exports[`correctly applies paddingLeft from contentStyleProp 1`] = `
13061321
{
13071322
"overflow": "hidden",
13081323
},
1324+
{
1325+
"zIndex": 3,
1326+
},
13091327
]
13101328
}
13111329
>
@@ -1532,6 +1550,9 @@ exports[`correctly applies textAlign center 1`] = `
15321550
{
15331551
"overflow": "hidden",
15341552
},
1553+
{
1554+
"zIndex": 3,
1555+
},
15351556
]
15361557
}
15371558
>
@@ -1756,6 +1777,9 @@ exports[`correctly renders left-side affix adornment, and right-side icon adornm
17561777
{
17571778
"overflow": "hidden",
17581779
},
1780+
{
1781+
"zIndex": 3,
1782+
},
17591783
]
17601784
}
17611785
>
@@ -2182,6 +2206,9 @@ exports[`correctly renders left-side icon adornment, and right-side affix adornm
21822206
{
21832207
"overflow": "hidden",
21842208
},
2209+
{
2210+
"zIndex": 3,
2211+
},
21852212
]
21862213
}
21872214
>

0 commit comments

Comments
 (0)