@react-aria/menu
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -179,2 +179,8 @@ var { | ||
let onKeyDown = e => { | ||
// Ignore repeating events, which may have started on the menu trigger before moving | ||
// focus to the menu item. We want to wait for a second complete key press sequence. | ||
if (e.repeat) { | ||
return; | ||
} | ||
switch (e.key) { | ||
@@ -181,0 +187,0 @@ case ' ': |
@@ -152,2 +152,8 @@ import { isFocusVisible, useHover, usePress } from "@react-aria/interactions"; | ||
let onKeyDown = e => { | ||
// Ignore repeating events, which may have started on the menu trigger before moving | ||
// focus to the menu item. We want to wait for a second complete key press sequence. | ||
if (e.repeat) { | ||
return; | ||
} | ||
switch (e.key) { | ||
@@ -154,0 +160,0 @@ case ' ': |
{ | ||
"name": "@react-aria/menu", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,12 +21,12 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/interactions": "^3.1.0", | ||
"@react-aria/overlays": "^3.1.0", | ||
"@react-aria/selection": "^3.1.0", | ||
"@react-aria/utils": "^3.1.0", | ||
"@react-stately/collections": "^3.1.0", | ||
"@react-stately/menu": "^3.1.0", | ||
"@react-stately/tree": "^3.1.0", | ||
"@react-types/button": "^3.1.0", | ||
"@react-aria/interactions": "^3.2.0", | ||
"@react-aria/overlays": "^3.2.0", | ||
"@react-aria/selection": "^3.2.0", | ||
"@react-aria/utils": "^3.2.0", | ||
"@react-stately/collections": "^3.2.0", | ||
"@react-stately/menu": "^3.2.0", | ||
"@react-stately/tree": "^3.1.1", | ||
"@react-types/button": "^3.2.0", | ||
"@react-types/menu": "^3.1.0", | ||
"@react-types/shared": "^3.1.0" | ||
"@react-types/shared": "^3.2.0" | ||
}, | ||
@@ -39,3 +39,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "211099972fe75ee581892efd01a7f89dfb9cdf69" | ||
"gitHead": "661f0f2e3b8648a75aae83043267954700059fe0" | ||
} |
@@ -108,3 +108,9 @@ /* | ||
let onKeyDown = (e) => { | ||
let onKeyDown = (e: KeyboardEvent) => { | ||
// Ignore repeating events, which may have started on the menu trigger before moving | ||
// focus to the menu item. We want to wait for a second complete key press sequence. | ||
if (e.repeat) { | ||
return; | ||
} | ||
switch (e.key) { | ||
@@ -111,0 +117,0 @@ case ' ': |
Sorry, the diff of this file is not supported yet
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
85380
956
Updated@react-aria/overlays@^3.2.0
Updated@react-aria/selection@^3.2.0
Updated@react-aria/utils@^3.2.0
Updated@react-stately/menu@^3.2.0
Updated@react-stately/tree@^3.1.1
Updated@react-types/button@^3.2.0
Updated@react-types/shared@^3.2.0