Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event propagation is stopped when default is prevented #150

Closed
JavierParra opened this issue Dec 20, 2016 · 3 comments
Closed

Event propagation is stopped when default is prevented #150

JavierParra opened this issue Dec 20, 2016 · 3 comments

Comments

@JavierParra
Copy link

When intercooler prevents the default behaviour it also stops propagation (by returning false to the jQuery event handler) therefore preventing any further use my application could have for that event.

@1cg
Copy link
Contributor

1cg commented Dec 28, 2016

I'm wondering if the fix for this will have unintended consequences for existing users. What do you think?

@JavierParra
Copy link
Author

JavierParra commented Dec 28, 2016

I can see someone declaring a document-wide click handler for something else and relying on it not being propagated for intercooler links.

But in that scenario, they'd encounter unexpected behavior when not setting an "href" attribute and also it'd be easy for them to check if the element that initiated the event is an ic link.

I agree it has a chance to break someone's code but I do believe it's important to have homogeneous behavior and not break a standard API.

Maybe add a "breaking changes" notice in the changelog?

@1cg
Copy link
Contributor

1cg commented Dec 28, 2016 via email

@1cg 1cg closed this as completed Jun 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants