Socket
Socket
Sign inDemoInstall

@reach/combobox

Package Overview
Dependencies
18
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

7

es/index.js

@@ -319,4 +319,2 @@ 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; };

// WHERE I LEFT OFF: focus is now opening the list, maybe it shouldn't, maybe
// make a <ComboboxButton/> that can control it instead.
var handleFocus = function handleFocus() {

@@ -717,6 +715,3 @@ if (selectOnClick) {

if (popoverRef.current.contains(document.activeElement)) {
// focus landed inside the combobox, keep it open, but we don't want
// "Enter" causing the popover to close, so we clear the navigation
// value to act like there's no navigation going on anymore (cause
// there isn't!)
// focus landed inside the combobox, keep it open
if (state !== INTERACTING) {

@@ -723,0 +718,0 @@ transition(INTERACT);

@@ -338,4 +338,2 @@ "use strict";

// WHERE I LEFT OFF: focus is now opening the list, maybe it shouldn't, maybe
// make a <ComboboxButton/> that can control it instead.
var handleFocus = function handleFocus() {

@@ -736,6 +734,3 @@ if (selectOnClick) {

if (popoverRef.current.contains(document.activeElement)) {
// focus landed inside the combobox, keep it open, but we don't want
// "Enter" causing the popover to close, so we clear the navigation
// value to act like there's no navigation going on anymore (cause
// there isn't!)
// focus landed inside the combobox, keep it open
if (state !== INTERACTING) {

@@ -742,0 +737,0 @@ transition(INTERACT);

2

package.json
{
"name": "@reach/combobox",
"version": "0.1.0",
"version": "0.1.1",
"description": "Accessible React Combobox (Autocomplete).",

@@ -5,0 +5,0 @@ "author": "Ryan Florence <@ryanflorence>",

@@ -378,4 +378,2 @@ /* eslint-disable jsx-a11y/role-has-required-aria-props */

// WHERE I LEFT OFF: focus is now opening the list, maybe it shouldn't, maybe
// make a <ComboboxButton/> that can control it instead.
const handleFocus = () => {

@@ -790,6 +788,3 @@ if (selectOnClick) {

if (popoverRef.current.contains(document.activeElement)) {
// focus landed inside the combobox, keep it open, but we don't want
// "Enter" causing the popover to close, so we clear the navigation
// value to act like there's no navigation going on anymore (cause
// there isn't!)
// focus landed inside the combobox, keep it open
if (state !== INTERACTING) {

@@ -796,0 +791,0 @@ transition(INTERACT);

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc