• Hi,

    When ACFE is active, it changes the default ACF behavior with tab fields which is to remember the last active tab. It jumps back to the first tab, which is driving content editors mad ??

    Do you have any pointer to something that might make this happen?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    I was able to reproduce the issue. This bug was introduced in a recent patch, due to a code that tries to standardize ACF data retrivial method.

    I’ll add a fix in the next patch. In the meantime, you can fix it by yourself by adding this code in your theme’s functions.php file:

    add_action('acf/admin_print_footer_scripts', 'my_acf_print_footer_scripts');
    function my_acf_print_footer_scripts(){
        ?>
        <script>
            (function($){
    
            if(typeof acf === 'undefined' || typeof acfe === 'undefined'){
                return;
            }
    
            acf.Model.prototype.get = function(name, def = null){
                return !acfe.isUndefined(this.data[name]) ? this.data[name] : def;
            };
    
        })(jQuery);
        </script>
        <?php
    }

    Sorry for the inconvenience.

    Have a nice day!

    Regards.

    Thread Starter Little Boy Running

    (@mvauchel)

    Hi Konrad,

    It works perfectly!
    I’ll use your workaround and monitor your next patch to remove it.

    Many thanks for your clear and useful reply.
    Have a nice day!
    Best regards

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    I’m glad to hear it now works as expected!

    Have a nice day!

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does not remember the last tab on page refresh’ is closed to new replies.