react-select-search
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -110,3 +110,3 @@ "use strict"; | ||
setValue(newValue); | ||
onChange(newValue); | ||
onChange(newValue, (0, _getOption.default)(newValue, allOptions)); | ||
}; | ||
@@ -113,0 +113,0 @@ |
@@ -15,3 +15,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
import React, { useEffect, forwardRef, useMemo, memo, useRef } from 'react'; | ||
import React, { forwardRef, useMemo, memo } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
@@ -18,0 +18,0 @@ import useSelect from './useSelect'; |
@@ -93,3 +93,3 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } | ||
setValue(newValue); | ||
onChange(newValue); | ||
onChange(newValue, getOption(newValue, allOptions)); | ||
}; | ||
@@ -96,0 +96,0 @@ |
{ | ||
"name": "react-select-search", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Lightweight select component for React", | ||
@@ -5,0 +5,0 @@ "main": "dist/esm/index.js", |
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
72579