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
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.