Skip to content
This repository was archived by the owner on Jan 17, 2019. It is now read-only.

fix bug in IE/Edge for not support native .closest(), use jQuery instead#87

Open
w2wjochem wants to merge 2 commits intomyclabs:masterfrom
paqtcom:master
Open

fix bug in IE/Edge for not support native .closest(), use jQuery instead#87
w2wjochem wants to merge 2 commits intomyclabs:masterfrom
paqtcom:master

Conversation

@w2wjochem
Copy link

Problem:
In IE/Edge when using the submit-form option the submit event wil not fire because of javascript error: "Object doesn't support property or method 'closest'". Because IE/Edge does not support the vanilla feature export yet (see: http://caniuse.com/#feat=element-closest).

Fix:
Make the e.target element a jQuery object so it can use the jQuery .closest() method.

@johanvanhelden
Copy link

I am having the same issue, could you please merge this PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants