Skip to content

Commit 68ad214

Browse files
damianfilipek81BogiKay
authored andcommitted
fix: input label not visible on ios if multiline, fixes #4482
1 parent 8dcfbcc commit 68ad214

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
>
@@ -358,6 +361,9 @@ exports[`correctly applies a component as the text label 1`] = `
358361
{
359362
"overflow": "hidden",
360363
},
364+
{
365+
"zIndex": 3,
366+
},
361367
]
362368
}
363369
>
@@ -598,6 +604,9 @@ exports[`correctly applies cursorColor prop 1`] = `
598604
{
599605
"overflow": "hidden",
600606
},
607+
{
608+
"zIndex": 3,
609+
},
601610
]
602611
}
603612
>
@@ -822,6 +831,9 @@ exports[`correctly applies default textAlign based on default RTL 1`] = `
822831
{
823832
"overflow": "hidden",
824833
},
834+
{
835+
"zIndex": 3,
836+
},
825837
]
826838
}
827839
>
@@ -1039,6 +1051,9 @@ exports[`correctly applies height to multiline Outline TextInput 1`] = `
10391051
{
10401052
"overflow": "hidden",
10411053
},
1054+
{
1055+
"zIndex": 3,
1056+
},
10421057
]
10431058
}
10441059
>
@@ -1303,6 +1318,9 @@ exports[`correctly applies paddingLeft from contentStyleProp 1`] = `
13031318
{
13041319
"overflow": "hidden",
13051320
},
1321+
{
1322+
"zIndex": 3,
1323+
},
13061324
]
13071325
}
13081326
>
@@ -1529,6 +1547,9 @@ exports[`correctly applies textAlign center 1`] = `
15291547
{
15301548
"overflow": "hidden",
15311549
},
1550+
{
1551+
"zIndex": 3,
1552+
},
15321553
]
15331554
}
15341555
>
@@ -1753,6 +1774,9 @@ exports[`correctly renders left-side affix adornment, and right-side icon adornm
17531774
{
17541775
"overflow": "hidden",
17551776
},
1777+
{
1778+
"zIndex": 3,
1779+
},
17561780
]
17571781
}
17581782
>
@@ -2179,6 +2203,9 @@ exports[`correctly renders left-side icon adornment, and right-side affix adornm
21792203
{
21802204
"overflow": "hidden",
21812205
},
2206+
{
2207+
"zIndex": 3,
2208+
},
21822209
]
21832210
}
21842211
>

0 commit comments

Comments
 (0)