Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[custom select] Older versions of jQuery report 0 for .attr( "tabinde…

…x" ) if the attribute is absent. Check for its presence first.
  • Loading branch information...
commit 0c0726c61da4726d83b15fedbceb5e4d1435d03c 1 parent cb4051d
@gabrielschulhof gabrielschulhof authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/widgets/forms/select.custom.js
View
2  js/widgets/forms/select.custom.js
@@ -99,7 +99,7 @@ define( [
self.refresh();
if ( self._origTabIndex === undefined ) {
- self._origTabIndex = self.select.attr( "tabindex" );
+ self._origTabIndex = self.select[ 0 ].hasAttribute( "tabindex" ) ? self.select.attr( "tabindex" ) : undefined;
// Map undefined to false, because self._origTabIndex === undefined
// indicates that we have not yet checked whether the select has
// originally had a tabindex attribute, whereas false indicates that
Please sign in to comment.
Something went wrong with that request. Please try again.