Skip to content
This repository has been 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
wants to merge 2 commits into
base: master
Choose a base branch
from

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
2 participants