Coulda sworn this wasn’t how it used to work, but with jquery my click event is firing even if I return false on both mousedown and mouseup.
Share
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.
Because a click event is a mousedown followed by a mouseup. Stopping/absorbing the ancestor events don’t change the fact that they happened, and having happened is all that is required to trigger the descendent.