@springernature/global-dropdown
Advanced tools
Comparing version 0.1.1 to 0.2.0
# History | ||
## 0.1.0 (2018-07-20) | ||
* First version | ||
## 0.2.0 (2018-07-23) | ||
* Stop page scrolling when using up & down keys to navigate dropdown menu. | ||
## 0.1.1 (2018-07-20) | ||
* Publish to NPM | ||
* Publish to NPM | ||
## 0.1.0 (2018-07-20) | ||
* First version |
@@ -50,2 +50,3 @@ /* eslint no-use-before-define: ["error", { "functions": false, "variables": false }] */ | ||
if (keyEventIsInAction(event, actions.UP)) { | ||
event.preventDefault(); | ||
if (index === 0) { | ||
@@ -61,2 +62,3 @@ dropdownItems[dropdownItems.length - 1].focus(); | ||
if (keyEventIsInAction(event, actions.DOWN)) { | ||
event.preventDefault(); | ||
if (index === dropdownItems.length - 1) { | ||
@@ -63,0 +65,0 @@ dropdownItems[0].focus(); |
{ | ||
"name": "@springernature/global-dropdown", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "dropdown component", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
8987
130