Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-select-search

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-select-search - npm Package Compare versions

Comparing version 1.0.0-rc5 to 1.0.0-rc6

12

dist/cjs/SelectSearch.js

@@ -419,3 +419,5 @@ "use strict";

if (highlighted > this.state.options.length - 1) {
var flatOptions = (0, _FlattenOptions.default)(this.state.options);
if (highlighted > flatOptions.length - 1) {
highlighted = 0;

@@ -431,7 +433,9 @@ }

value: function handleArrowUp() {
if (this.state.options.length < 1) {
var flatOptions = (0, _FlattenOptions.default)(this.state.options);
if (flatOptions.length < 1) {
return;
}
var highlighted = this.state.options.length - 1;
var highlighted = flatOptions.length - 1;

@@ -443,3 +447,3 @@ if (this.state.highlighted != null) {

if (highlighted < 0) {
highlighted = this.state.options.length - 1;
highlighted = flatOptions.length - 1;
}

@@ -446,0 +450,0 @@

@@ -399,3 +399,5 @@ function _extends() { _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; }; return _extends.apply(this, arguments); }

if (highlighted > this.state.options.length - 1) {
var flatOptions = FlattenOptions(this.state.options);
if (highlighted > flatOptions.length - 1) {
highlighted = 0;

@@ -411,7 +413,9 @@ }

value: function handleArrowUp() {
if (this.state.options.length < 1) {
var flatOptions = FlattenOptions(this.state.options);
if (flatOptions.length < 1) {
return;
}
var highlighted = this.state.options.length - 1;
var highlighted = flatOptions.length - 1;

@@ -423,3 +427,3 @@ if (this.state.highlighted != null) {

if (highlighted < 0) {
highlighted = this.state.options.length - 1;
highlighted = flatOptions.length - 1;
}

@@ -426,0 +430,0 @@

@@ -249,3 +249,2 @@ /** https://gist.github.com/Keeguon/2310008 */

export const fontStacks = [
{ name: 'Helvetica', value: 'Helvetica', stack: 'Helvetica, sans-serif' },
{

@@ -256,2 +255,3 @@ type: 'group',

{ name: 'Roboto', value: 'Roboto', stack: 'Roboto, sans-serif' },
{ name: 'Helvetica', value: 'Helvetica', stack: 'Helvetica, sans-serif' },
],

@@ -258,0 +258,0 @@ },

{
"name": "react-select-search",
"version": "1.0.0-rc5",
"version": "1.0.0-rc6",
"description": "React powered selectbox with search",

@@ -5,0 +5,0 @@ "main": "dist/esm/index.js",

@@ -355,3 +355,5 @@ import React from 'react';

if (highlighted > this.state.options.length - 1) {
const flatOptions = FlattenOptions(this.state.options);
if (highlighted > flatOptions.length - 1) {
highlighted = 0;

@@ -364,7 +366,9 @@ }

handleArrowUp() {
if (this.state.options.length < 1) {
const flatOptions = FlattenOptions(this.state.options);
if (flatOptions.length < 1) {
return;
}
let highlighted = this.state.options.length - 1;
let highlighted = flatOptions.length - 1;

@@ -376,3 +380,3 @@ if (this.state.highlighted != null) {

if (highlighted < 0) {
highlighted = this.state.options.length - 1;
highlighted = flatOptions.length - 1;
}

@@ -379,0 +383,0 @@

Sorry, the diff of this file is not supported yet

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