Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jorlowski677

    (@jorlowski677)

    I found a temporary fix (clients are pushing me to launch this soon).

    Changed this
    $("#fieldlist"+identifier+" .pb"+page).find(".field")[0].focus();
    to this…
    $("#fieldlist"+identifier+" .pb"+page).find(".field")[0]();

    and…
    if( !/date/.test( el.id ) ) el.focus();
    to this…
    if( !/date/.test( el.id ) ) el();

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Please, check the code of the “fbuilder-pro-public.jquery.js” file, located in “/wp-content/plugins/calculated-fields-form/js/fbuilder-pro-public.jquery.js”. If the file does not include the routine: “focusWithoutScrolling”, I recommend you install the latest update of plugin.

    Best regards.

    Thread Starter jorlowski677

    (@jorlowski677)

    I do have the latest version installed and it does have “focusWithoutScrolling.” This is where I changed the code as mentioned above.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Please, replace the code:

    focusWithoutScrolling = function(el){ … }

    in the “fbuilder-pro-public.jquery.js” file, with the following code:

    focusWithoutScrolling = function(el){
    var x = $(window).scrollLeft(), y = $(window).scrollTop();
    if( !/date/.test( el.id ) ) el.focus();
    $(‘html,body’).animate({scrollLeft:x,scrollTop:y}, 1);
    };

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Focus and scroll issue’ is closed to new replies.