• When form is inside fancybox and invalid, click on submit button cause scrolling body’s content rather than form’s content to invalid field.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dnesscarkey

    (@dnesscarkey)

    Hi @confrere ,

    Can you please send me your form url where i can see the issue ?

    Thanks

    Thread Starter confrere

    (@confrere)

    Hi,

    I consider using plugin for my client’s site. But first I test on my local machine.
    There isn’t public link yet. I can send you video from my local machine screen.
    I guess that the following line of code is causing this effect.

    jQuery('body, html').animate({scrollTop:$topErrorPosition}, 'normal');

    This code from click submit button event handler.

    Fancybox create wrapper with fixed position and scrolling html or body has no effect.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Form inside fancybox cause wrong scrolling’ is closed to new replies.