pretty-dropdowns
Advanced tools
Comparing version 4.13.0 to 4.15.0
/*! | ||
* jQuery Pretty Dropdowns Plugin v4.13.0 by T. H. Doan (https://thdoan.github.io/pretty-dropdowns/) | ||
* jQuery Pretty Dropdowns Plugin v4.15.0 by T. H. Doan (https://thdoan.github.io/pretty-dropdowns/) | ||
* | ||
@@ -61,3 +61,3 @@ * jQuery Pretty Dropdowns by T. H. Doan is licensed under the MIT License. | ||
$select.css('visibility', 'hidden').outerHeight(oOptions.height); | ||
nTimestamp = +new Date(); | ||
nTimestamp = performance.now()*100000000000000; | ||
// Test whether to add 'aria-labelledby' | ||
@@ -424,2 +424,4 @@ if (elSel.id) { | ||
$dropdown.children().removeClass('hover nohover'); | ||
// Update focus for NVDA screen readers | ||
$dropdown.attr('aria-activedescendant', $dropdown.children('.selected').attr('id')); | ||
}, (o.type==='mouseleave' && !$dropdown.data('clicked')) ? oOptions.hoverIntent : 0); | ||
@@ -432,7 +434,9 @@ }, | ||
if (bOn) { | ||
var $dropdown = $li.parent(); | ||
$li.removeClass('nohover').addClass('hover'); | ||
// Update focus for NVDA screen readers | ||
$dropdown.attr('aria-activedescendant', $li.attr('id')); | ||
if ($li.length===1 && $current && !bNoScroll) { | ||
// Ensure items are always in view | ||
var $dropdown = $li.parent(), | ||
nDropdownHeight = $dropdown.outerHeight(), | ||
var nDropdownHeight = $dropdown.outerHeight(), | ||
nItemOffset = $li.offset().top-$dropdown.offset().top-1; // -1px for top border | ||
@@ -439,0 +443,0 @@ if ($li.index()===0) { |
{ | ||
"name": "pretty-dropdowns", | ||
"version": "4.13.0", | ||
"version": "4.15.0", | ||
"description": "A simple, lightweight jQuery plugin to create stylized drop-down menus.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
35865
653