fix: disable zoom on input focusing on ios (#1386)
* fix: disable zoom when focusing input field on ios * chore: better naming
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
'use strict'
|
||||
|
||||
import { disableIosTextFieldZoom } from '@/Utils'
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
dashboardUrl?: string
|
||||
@@ -19,6 +21,7 @@ declare global {
|
||||
|
||||
application?: WebApplication
|
||||
mainApplicationGroup?: ApplicationGroup
|
||||
MSStream?: Record<string, unknown>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,6 +76,8 @@ const startApplication: StartApplication = async function startApplication(
|
||||
window.addEventListener('resize', setViewportHeight)
|
||||
window.addEventListener('orientationchange', setViewportHeight)
|
||||
|
||||
disableIosTextFieldZoom()
|
||||
|
||||
root.render(
|
||||
<ApplicationGroupView
|
||||
key={getKey()}
|
||||
|
||||
Reference in New Issue
Block a user