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)
|
||||
|
||||
return (
|
||||
<AriaLabel
|
||||
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()
|
||||
}
|
||||
}}
|
||||
>
|
||||
<AriaLabel className={styles.container}>
|
||||
<Body asChild fontOnly>
|
||||
<AriaInput
|
||||
{...props}
|
||||
|
||||
Reference in New Issue
Block a user