mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
fix form scroll on iphone
This commit is contained in:
1 parent
787df43ac0
commit
59f0d04ccd
4 files changed
+51
-25
No files matched your search
@@ -369,6 +369,13 @@ export default {
|
||||
this.stepFields.indexOf([...this.stepFields].reverse().find((fields) => fields.some((f) => !!this.values[f.uuid]))) + 1,
|
||||
this.stepFields.length - 1
|
||||
)
|
||||
|
||||
if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
|
||||
document.body.style.overflow = 'hidden'
|
||||
|
||||
window.scrollbox.classList.add('h-full', 'overflow-y-auto')
|
||||
window.scrollbox.parentNode.classList.add('h-screen', 'overflow-y-auto')
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goToStep (step, scrollToArea = false, clickUpload = false) {
|
||||
|
||||
Reference in new issue
Block a user