Iphone iphone

I'm having difficulty using idangerous swiper . I use swiper to navigate between views in a mobile web application and it works great! This is the code I'm using:

var mySwiper = new Swiper('.swiper-container',{
    loop:false,
    grabCursor: false,
    paginationClickable: false,
    moveStartThreshold:50
});

Problem On two pages I have input fields. When I click them on my iPhone, a keyboard appears, but the input field loses focus. Then I need to click the form again to get focus, allowing me to enter a field. I have no style in the input fields, and their markup looks like this:

<form action=""> 
    <input type="text" name="fname"><br> 
    <input type="text" name="lname"><br> 
    <input type="email" name="email" autocomplete="off"><br> 
    <input type="submit"> 
</form>

I think this might have something to do with some sort of prevention of the definition of a dangerous swiper, but I have no evidence of this.

+4

Source: https://habr.com/ru/post/1539606/


All Articles