Fix multiline on ios
This commit is contained in:
@@ -96,11 +96,7 @@ export function Root({children, isInvalid = false}: RootProps) {
|
|||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
// onPressIn/out don't work on android web
|
// onPressIn/out don't work on android web
|
||||||
onPress={e => {
|
onPress={() => inputRef.current?.focus()}
|
||||||
e.preventDefault()
|
|
||||||
e.stopPropagation()
|
|
||||||
inputRef.current?.focus()
|
|
||||||
}}
|
|
||||||
onHoverIn={onHoverIn}
|
onHoverIn={onHoverIn}
|
||||||
onHoverOut={onHoverOut}>
|
onHoverOut={onHoverOut}>
|
||||||
{children}
|
{children}
|
||||||
@@ -214,6 +210,7 @@ export function createInput(Component: typeof TextInput) {
|
|||||||
{
|
{
|
||||||
lineHeight: a.text_md.lineHeight * 1.1875,
|
lineHeight: a.text_md.lineHeight * 1.1875,
|
||||||
textAlignVertical: rest.multiline ? 'top' : undefined,
|
textAlignVertical: rest.multiline ? 'top' : undefined,
|
||||||
|
minHeight: rest.multiline ? 60 : undefined,
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user