The following looks fine but when i test it in gmail, it opens the link twice (in 2 new tabs), it’s as if there’s some kind of wierd event bubbling happening….
<a href="some_url"> <button>Approve</button> </a>
am i missing something obvious?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A link can’t contain a button. Either use a button or style the link like a button (i.e. that it looks like a button).
That said: The event bubbling is probably happening because the button does it’s job and then, the link processes the mouse click event, too.