@reach/combobox
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -127,3 +127,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
case INTERACT: | ||
return _extends({}, nextState, { navigationValue: null }); | ||
return nextState; | ||
case FOCUS: | ||
@@ -342,3 +342,3 @@ return _extends({}, nextState, { | ||
var inputValue = autocomplete && state === NAVIGATING ? // When idle, we don't have a navigationValue on ArrowUp/Down | ||
var inputValue = autocomplete && (state === NAVIGATING || state === INTERACTING) ? // When idle, we don't have a navigationValue on ArrowUp/Down | ||
navigationValue || controlledValue || value : controlledValue || value; | ||
@@ -461,4 +461,3 @@ | ||
onClick = _ref5.onClick, | ||
onMouseDown = _ref5.onMouseDown, | ||
props = _objectWithoutProperties(_ref5, ["children", "value", "onClick", "onMouseDown"]); | ||
props = _objectWithoutProperties(_ref5, ["children", "value", "onClick"]); | ||
@@ -465,0 +464,0 @@ var _useContext4 = useContext(Context), |
@@ -146,3 +146,3 @@ "use strict"; | ||
case INTERACT: | ||
return _extends({}, nextState, { navigationValue: null }); | ||
return nextState; | ||
case FOCUS: | ||
@@ -361,3 +361,3 @@ return _extends({}, nextState, { | ||
var inputValue = autocomplete && state === NAVIGATING ? // When idle, we don't have a navigationValue on ArrowUp/Down | ||
var inputValue = autocomplete && (state === NAVIGATING || state === INTERACTING) ? // When idle, we don't have a navigationValue on ArrowUp/Down | ||
navigationValue || controlledValue || value : controlledValue || value; | ||
@@ -480,4 +480,3 @@ | ||
onClick = _ref5.onClick, | ||
onMouseDown = _ref5.onMouseDown, | ||
props = _objectWithoutProperties(_ref5, ["children", "value", "onClick", "onMouseDown"]); | ||
props = _objectWithoutProperties(_ref5, ["children", "value", "onClick"]); | ||
@@ -484,0 +483,0 @@ var _useContext4 = (0, _react.useContext)(Context), |
{ | ||
"name": "@reach/combobox", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Accessible React Combobox (Autocomplete).", | ||
@@ -16,3 +16,3 @@ "author": "Ryan Florence <@ryanflorence>", | ||
"@reach/auto-id": "0.2.0", | ||
"@reach/popover": "^0.0.1", | ||
"@reach/popover": "^0.0.2", | ||
"@reach/portal": "^0.2.1", | ||
@@ -19,0 +19,0 @@ "@reach/utils": "^0.2.3", |
@@ -178,3 +178,3 @@ /* eslint-disable jsx-a11y/role-has-required-aria-props */ | ||
case INTERACT: | ||
return { ...nextState, navigationValue: null }; | ||
return nextState; | ||
case FOCUS: | ||
@@ -402,3 +402,3 @@ return { | ||
const inputValue = | ||
autocomplete && state === NAVIGATING | ||
autocomplete && (state === NAVIGATING || state === INTERACTING) | ||
? // When idle, we don't have a navigationValue on ArrowUp/Down | ||
@@ -530,3 +530,3 @@ navigationValue || controlledValue || value | ||
export const ComboboxOption = forwardRef(function ComboboxOption( | ||
{ children, value, onClick, onMouseDown, ...props }, | ||
{ children, value, onClick, ...props }, | ||
ref | ||
@@ -533,0 +533,0 @@ ) { |
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
83433
2117
+ Added@reach/popover@0.0.2(transitive)
+ Addedtabbable@4.0.0(transitive)
- Removed@reach/popover@0.0.1(transitive)
Updated@reach/popover@^0.0.2