Click handlers on tags like <div> are slow?


Hi everyone,

I’ve noticed that (click) handlers tend to respond slowly (or not at all during page transitions) when they’re put into tags like <div> instead of <button>. Is there a way I can make something like a <div> respond to (click) events faster (maybe by adding some type of button attribute to the <div> tag)?

The reason why I don’t want to use <button> in some places is because it has it’s own built in CSS styles that I’m trying to avoid.

Thanks for any help in advance!


Someone in the Ionic Slack group found a solution to my problem. For anyone who comes across this same issue, the solution is to add a tappable attribute to your <div> tag: