@clayui/form
Advanced tools
Comparing version 3.9.0 to 3.10.0
@@ -6,2 +6,12 @@ # Change Log | ||
# [3.10.0](https://github.com/liferay/clay/compare/@clayui/form@3.9.0...@clayui/form@3.10.0) (2020-07-28) | ||
### Bug Fixes | ||
- update packages to appropriate dependencies ([0026168](https://github.com/liferay/clay/commit/0026168)) | ||
### Features | ||
- **@clayui/shared:** Adds an object called Keys for normalize Keyboard events checkings avoiding people to using strings and care about browser compat when using React syntetic Keyboard events ([95c8ea9](https://github.com/liferay/clay/commit/95c8ea9)), closes [/github.com/facebook/react/blob/b87aabdfe1/packages/react-dom/src/events/getEventKey.js#L12-L29](https://github.com//github.com/facebook/react/blob/b87aabdfe1/packages/react-dom/src/events/getEventKey.js/issues/L12-L29) | ||
# [3.9.0](https://github.com/liferay/clay/compare/@clayui/form@3.8.0...@clayui/form@3.9.0) (2020-07-14) | ||
@@ -8,0 +18,0 @@ |
@@ -12,2 +12,4 @@ "use strict"; | ||
var _shared = require("@clayui/shared"); | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
@@ -43,5 +45,2 @@ | ||
var KEY_ARROWDOWN = 40; | ||
var KEY_ARROWUP = 38; | ||
function arrayMove(arrayToMove, oldIndex, newIndex) { | ||
@@ -141,3 +140,3 @@ arrayToMove.splice(newIndex, 0, arrayToMove.splice(oldIndex, 1)[0]); | ||
return selectedIndexes.forEach(function (index) { | ||
if (event.keyCode === KEY_ARROWDOWN && index === items.length - 1 || event.keyCode === KEY_ARROWUP && index === 0) { | ||
if (event.key === _shared.Keys.Down && index === items.length - 1 || event.key === _shared.Keys.Up && index === 0) { | ||
event.preventDefault(); | ||
@@ -144,0 +143,0 @@ } |
{ | ||
"name": "@clayui/form", | ||
"version": "3.9.0", | ||
"version": "3.10.0", | ||
"description": "ClayForm component", | ||
@@ -29,4 +29,5 @@ "license": "BSD-3-Clause", | ||
"dependencies": { | ||
"@clayui/button": "^3.3.1", | ||
"@clayui/button": "^3.4.0", | ||
"@clayui/icon": "^3.0.5", | ||
"@clayui/shared": "^3.2.1", | ||
"classnames": "^2.2.6" | ||
@@ -42,3 +43,3 @@ }, | ||
], | ||
"gitHead": "27253a866a6cbff78cdef20c3641fb7a2634933d" | ||
"gitHead": "c3d6a4b78259655789b4181fea4579605d718f89" | ||
} |
Sorry, the diff of this file is not supported yet
129094
7
2695
+ Added@clayui/shared@^3.2.1
+ Added@clayui/link@3.128.0(transitive)
+ Added@clayui/provider@3.128.0(transitive)
+ Added@clayui/shared@3.128.0(transitive)
+ Addedaria-hidden@1.2.4(transitive)
+ Addeddom-align@1.12.4(transitive)
+ Addedtslib@2.8.1(transitive)
Updated@clayui/button@^3.4.0