Merged in fix/SW-2664-enter-details-ios (pull request #2025)
fix(SW-2664): remove ontouch callback that causes bugs * fix(SW-2664): remove ontouch callback that causes bugs This was causing touch related bugs on iOS on the enter details page. Approved-by: Arvid Norlin
This commit is contained in:
@@ -30,16 +30,7 @@ const AriaInputWithLabel = forwardRef(function AriaInputWithLabelComponent(
|
|||||||
useImperativeHandle(forwardedRef, () => ref.current as HTMLInputElement)
|
useImperativeHandle(forwardedRef, () => ref.current as HTMLInputElement)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AriaLabel
|
<AriaLabel className={styles.container}>
|
||||||
className={styles.container}
|
|
||||||
// fixes an issue with mobile devices being unable to
|
|
||||||
// focus because the input height is 0
|
|
||||||
onTouchStart={() => {
|
|
||||||
if (ref.current) {
|
|
||||||
ref.current.focus()
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Body asChild fontOnly>
|
<Body asChild fontOnly>
|
||||||
<AriaInput
|
<AriaInput
|
||||||
{...props}
|
{...props}
|
||||||
|
|||||||
Reference in New Issue
Block a user