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

Delegated events broken since 17 june 2021? #316

Closed
d3stroyahh opened this issue Oct 29, 2021 · 3 comments
Closed

Delegated events broken since 17 june 2021? #316

d3stroyahh opened this issue Oct 29, 2021 · 3 comments
Assignees
Labels

Comments

@d3stroyahh
Copy link

d3stroyahh commented Oct 29, 2021

Hi,
since june 17th 2021 you can't trigger the change event in delegated events.
For instance
$('body').on('change', '#sumoselect', function(){console.log('changed');}); not working
while
$('#sumoselect').on('change', function(){console.log('changed');}) works

now, I fixed the latest version by changing
callChange () { this.E.get().forEach(e => { dispatchEvent(e, 'change'); dispatchEvent(e, 'click'); }); },

to

callChange () { this.E.trigger('change').trigger('click'); },

as it was in june 11th 2021.

Why was that change done? Maybe there was a reason I don't know

thanks

@Zenoo
Copy link
Collaborator

Zenoo commented Oct 29, 2021

I'm having trouble recreating the issue.

Could you please try to recreate the issue on a Codepen or JSFiddle and send me the link?

@d3stroyahh
Copy link
Author

d3stroyahh commented Oct 29, 2021

here it is

https://jsfiddle.net/kmeo5aL0/

tough to imagine why no user had this issue before

@Zenoo Zenoo added bug and removed Need more info labels Oct 30, 2021
@Zenoo Zenoo self-assigned this Oct 30, 2021
@Zenoo Zenoo closed this as completed in 620ba23 Oct 30, 2021
@Zenoo
Copy link
Collaborator

Zenoo commented Oct 30, 2021

This should be fixed in v3.3.30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants