Socket
Socket
Sign inDemoInstall

@reach/combobox

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reach/combobox - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

7

es/index.js

@@ -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 @@ ) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc