jimfog Posted October 30, 2013 Share Posted October 30, 2013 So far in my event handlers I never used the stopPropagation method to prevent bubbling. I just use event.preverntDefault to prevent the default behavior and that's it. The question is if it is really necessary to use it. In my case I have a form with fieldsets inside of it(with click event handlers at the various submit buttons). All of these have a parent element and the strange thing is that jquery attaches an event handler to it too(I cannot understand why jquery does that). So the bubbling ends up at the parent element. Thanks Link to comment Share on other sites More sharing options...
justsomeguy Posted October 30, 2013 Share Posted October 30, 2013 You ask questions like this a lot. It is necessary to use it if you want to use that behavior. If you don't want to use that behavior, then don't use it. If you don't know whether you want to use that behavior then research what it does. You're the designer, it's your job to answer those questions. Link to comment Share on other sites More sharing options...
jimfog Posted October 30, 2013 Author Share Posted October 30, 2013 You're the designer, it's your job to answer those questions. I maybe the designer but I do not have such an experience as to answer these questions with confidence. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 30, 2013 Share Posted October 30, 2013 I understand that, no one starts with this experience. You get the experience from doing the research, making a decision, and seeing how it works. If there are problems with how it works then you've learned something. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now