refactor: make modals/popovers scrollable on ios when keyboard is open

This commit is contained in:
Aman Harwara
2023-01-27 20:50:40 +05:30
parent 821b0a9c14
commit 3fe57b415e
4 changed files with 10 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ export const setCustomViewportHeight = (height: number, suffix: 'px' | 'vh', for
log(LoggingDomain.Viewport, `setCustomViewportHeight: ${value}`)
document.body.style.height = value
document.documentElement.style.setProperty('--ios-viewport-height', value)
if (forceTriggerResizeEvent) {
window.dispatchEvent(new Event('resize'))