Skip to content

Commit 3fbbfaf

Browse files
committed
Remove IE8 support that crashes in some cases (in my case using Drupal and the views_load_more module in combination with jQuery UI 12.1
1 parent 74f8a0a commit 3fbbfaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/form.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
// Support: IE8 Only
1414
// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop
1515
// 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.
1617
return $.fn._form = function() {
17-
return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
18+
return $( this[ 0 ].form );
1819
};
1920

2021
} ) );

0 commit comments

Comments
 (0)