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:
Niclas Edenvin
2025-05-09 09:44:57 +00:00
parent e23f8694e3
commit 70f9f2a321

View File

@@ -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}