framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.04k stars 3.23k forks source link

Use <button> instead of <a> in FAB buttons #4167

Open brian-g opened 1 year ago

brian-g commented 1 year ago

Describe the bug

Apple's iOS Safari browser, even when running in Capacitor, will try to show a link preview when the user does a long press. It refuses to run the typical click or touch events as a result. This can frustrate users of the application. In fact the we've seen users who get into a horrible feedback loop where they try to press harder and longer to make the button work.

Also, semantically, a hyperlink is something that links to another page while a button performs an action. In this case, I think the the correct semantic element to use is a