select2-component
Advanced tools
Comparing version 3.1.8 to 3.1.9
@@ -237,3 +237,6 @@ "use strict"; | ||
lastScrollTopIndex += scrollTop - lastScrollTopIndex - 5; | ||
results.scrollTop = results.querySelectorAll("li").item(scrollTop).offsetTop - results.offsetHeight; | ||
var item = results.querySelectorAll("li").item(scrollTop); | ||
if (item) { | ||
results.scrollTop = item.offsetTop - results.offsetHeight; | ||
} | ||
return lastScrollTopIndex; | ||
@@ -243,3 +246,6 @@ } | ||
lastScrollTopIndex -= lastScrollTopIndex - scrollTop; | ||
results.scrollTop = results.querySelectorAll("li").item(lastScrollTopIndex - 1).offsetTop; | ||
var item = results.querySelectorAll("li").item(lastScrollTopIndex - 1); | ||
if (item) { | ||
results.scrollTop = item.offsetTop; | ||
} | ||
return lastScrollTopIndex; | ||
@@ -246,0 +252,0 @@ } |
{ | ||
"name": "select2-component", | ||
"version": "3.1.8", | ||
"version": "3.1.9", | ||
"description": "A vuejs, reactjs and angular select component.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
144703
2236