P
P
Poprotsky2015-12-08 11:23:54
css
Poprotsky, 2015-12-08 11:23:54

Problem with forms in pop-up on mobile version of safari. What to do?

Greetings to all,
When developing a project, I encountered the implementation of forms in pop-up.
On all PCs and Macs, everything works without problems. On the mobile version of chrome, firefox, opera and standard browsers in android, there are no problems either.
The only problem is the mobile version of safari on iPad and iPhone.
The problem is this:
when I activate any input in the form that is in the pop-up, safari for some reason scrolls the entire page to the very top (regardless of where you are on the page). And it turns out that when you close the pop-up, you see not the place where you activated it, but you see the first section of the site and the average user is lost from such an unforeseen action on the part of the browser.
Maybe someone faced a similar problem? What can be done in such a situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
v-orlov, 2015-12-08
@v-orlov

Do you have modal windows accidentally not called by fancybox? I had a similar problem, it was decided by a slightly different Fancy initialization in js

$('.fancybox').fancybox({
        helpers     : {
            overlay : {
                locked: false
            }
        }
    });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question