I've been trying to make something happen when clicking the tooltip in Foundation 6.
Everything seem to work fine when I test my work on a desktop browser (or any browser which is not iOS Safari).
In Safari for iOS the tooltip does not respond, as if no click is made.
$(document).foundation();
$(".tooltip").off();
$(".tooltip").click(()=>{
alert("!");
});
I have my code here: https://codepen.io/Nirtz89/pen/MVbxpo
Thanks!
After a lot of trial and error, I've found a solution.
$("body").on("touchstart", ".tooltip", function () {
// Code for tooltip press here
});
This works perfectly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.