Focus composer input when editable (#10982)
This commit is contained in:
@@ -615,6 +615,8 @@ export function Outer({
|
||||
label?: string
|
||||
style?: StyleProp<ViewStyle>
|
||||
align?: 'left' | 'right'
|
||||
/** Web only. Native restores focus differently. */
|
||||
onCloseAutoFocus?: (event: Event) => void
|
||||
}) {
|
||||
const t = useTheme()
|
||||
const context = useContextMenuContext()
|
||||
|
||||
@@ -34,14 +34,16 @@ export function Outer({
|
||||
children,
|
||||
label,
|
||||
style,
|
||||
onCloseAutoFocus,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
label?: string
|
||||
style?: StyleProp<ViewStyle>
|
||||
onCloseAutoFocus?: (event: Event) => void
|
||||
}) {
|
||||
const t = useTheme()
|
||||
return (
|
||||
<Menu.Outer style={style}>
|
||||
<Menu.Outer style={style} onCloseAutoFocus={onCloseAutoFocus}>
|
||||
{label ? (
|
||||
<Text
|
||||
numberOfLines={1}
|
||||
|
||||
Reference in New Issue
Block a user