Home › Forums › Backend Issues (wp-admin) › Add image repeater issue iPad › Reply To: Add image repeater issue iPad
Hello,
I met this bug last night.
I don’t figure out why the event click doesn’t fire in iPad in this case (image field in repeater field).
I even add a script to see what happen on iPad when we click on this input :
$(document).on('click', function(e){
console.log(e.target);
// All devices return : <input type="button" class="button add-image" value="Ajouter une image"> // NB French locale
// iPad return nothing
})
The only way i found to fire the onclick is to add a touchstart event like following :
// input.js ; line 2831
$(document).on('click touchstart', '.acf-image-uploader .add-image', function( e ){
e.preventDefault();
acf.fields.image.set({ $el : $(this).closest('.acf-image-uploader') }).popup();
});
And it works.
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.