Skip to content

Commit d6b4abe

Browse files
authored
add webStyle to TextField (#2387)
1 parent 11fad95 commit d6b4abe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/incubator/TextField/Input.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const Input = ({
4141

4242
return (
4343
<TextInput
44-
style={[styles.input, !!inputColor && {color: inputColor}, style]}
44+
style={[styles.input, !!inputColor && {color: inputColor}, style, Constants.isWeb && styles.webStyle]}
4545
{...props}
4646
value={value}
4747
placeholder={placeholder}
@@ -58,7 +58,6 @@ const styles = StyleSheet.create({
5858
input: {
5959
flexGrow: 1,
6060
textAlign: Constants.isRTL ? 'right' : 'left',
61-
outlineWidth: Constants.isWeb ? 0 : undefined,
6261
// Setting paddingTop/Bottom separately fix height issues on iOS with multiline
6362
paddingTop: 0,
6463
paddingBottom: 0,
@@ -69,6 +68,10 @@ const styles = StyleSheet.create({
6968
textAlignVertical: 'center'
7069
}
7170
})
71+
},
72+
webStyle: {
73+
// @ts-expect-error
74+
outlineWidth: 0
7275
}
7376
});
7477

0 commit comments

Comments
 (0)