Support

Account

Home Forums Bug Reports Issue with Post Object Field and latest Safari Update 12.0 Reply To: Issue with Post Object Field and latest Safari Update 12.0

  • Place this to your function.php

    
    /**
    ACF Select field: Fix for Safari Browser
    */
    add_action('admin_footer', 'my_admin_add_js');
    function my_admin_add_js() {
        ?>
        <script>
            $(document).ajaxStop(function() {
                $('select.select2-hidden-accessible').on('select2:closing', function() {
                    $('body > span.select2-container.select2-container--default.select2-container--open').hide();
                });
                $('select.select2-hidden-accessible').on('select2:open', function() {
                    $('body > span.select2-container.select2-container--default.select2-container--open').css('display','inline-block');
                });
            });
        </script>
        <?php
    }