There was an error while loading. Please reload this page.
1 parent 74f8a0a commit 3fbbfafCopy full SHA for 3fbbfaf
ui/form.js
@@ -13,8 +13,9 @@
13
// Support: IE8 Only
14
// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop
15
// with a string, so we need to find the proper form.
16
+// However since we no longer need to support IE8 we can just return the form attribute.
17
return $.fn._form = function() {
-return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
18
+return $( this[ 0 ].form );
19
};
20
21
} ) );
0 commit comments