fg-collapsible
Advanced tools
Comparing version 0.7.0 to 0.7.1
{ | ||
"name": "fg-collapsible", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Toggle your collapsible content", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -36,3 +36,3 @@ /* | ||
}) | ||
.bind( "touchend." + pluginName + " click." + pluginName+ " pointerup." + pluginName + " MSPointerUp." + pluginName, function( a ){ | ||
.bind( "focusin." + pluginName + " touchend." + pluginName + " click." + pluginName+ " pointerup." + pluginName + " MSPointerUp." + pluginName, function( a ){ | ||
var atype = a.originalEvent ? a.originalEvent.type : a.type; | ||
@@ -196,6 +196,6 @@ if( atype === "touchend" || atype === "pointerup" || atype === "MSPointerUp" ){ | ||
} | ||
@@ -202,0 +202,0 @@ } ); |
@@ -19,9 +19,3 @@ /* collapsible extension for navbar functionality */ | ||
$moreBtn | ||
.attr( "aria-label", "More items" ) | ||
.bind( "click", function(){ | ||
if( $collapsible.is( ".collapsible-expanded" ) ){ | ||
$collapsible.find( "." + itemMenuClass ).eq(0).focus(); | ||
} | ||
} ); | ||
$moreBtn.attr( "aria-label", "Toggle more items" ); | ||
@@ -81,2 +75,8 @@ var resetItems = function(){ | ||
} ) | ||
.bind( "expand", function( e ){ | ||
if( $( e.target ).is( this ) ){ | ||
$moreBtn.attr( "tabindex", "-1" ); | ||
$collapsible.find( "." + itemMenuClass + " a" ).eq(0).focus(); | ||
} | ||
}) | ||
.bind( "collapse", function( e ){ | ||
@@ -87,2 +87,6 @@ var $childCollapsibles = $( e.target ).find( "." + pluginName + "-expanded." + itemMenuClass ); | ||
} | ||
// restore tabindex | ||
if( $( e.target ).is( this ) ){ | ||
$moreBtn.attr( "tabindex", "0" ); | ||
} | ||
@@ -89,0 +93,0 @@ } ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
337699
9534