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

react-dropdown-now

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dropdown-now - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

5

dist/Dropdown.js

@@ -48,2 +48,3 @@ "use strict";

onChange = _ref.onChange,
onSelect = _ref.onSelect,
baseClassName = _ref.baseClassName,

@@ -112,2 +113,6 @@ controlClassName = _ref.controlClassName,

var fireChangeEvent = function fireChangeEvent(newSelectedState, e) {
if (onSelect) {
onSelect(newSelectedState.option, e);
}
if (newSelectedState.id !== (0, _get["default"])(selected, 'id') && onChange) {

@@ -114,0 +119,0 @@ onChange(newSelectedState.option, e);

@@ -36,2 +36,3 @@ "use strict";

var originalOptions = _ref.options,
onSelect = _ref.onSelect,
matcher = _ref.matcher,

@@ -54,2 +55,6 @@ value = _ref.value,

var fireChangeEvent = function fireChangeEvent(newSelectedState, e) {
if (onSelect) {
onSelect(newSelectedState.option, e);
}
if (newSelectedState.id !== (0, _get["default"])(selected, 'id') && onChange) {

@@ -56,0 +61,0 @@ onChange(newSelectedState.option, e);

2

package.json
{
"name": "react-dropdown-now",
"version": "3.1.0",
"version": "3.1.1",
"description": "React dropdown component NOW",

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

@@ -21,2 +21,3 @@ # react-dropdown-now

onChange={(value) => console.log('change!', value)}
onSelect={(value) => console.log('selected!', value)} // always fires once a selection happens even if there is no change
onClose={(closedBySelection) => console.log('closedBySelection?:', closedBySelection)}

@@ -23,0 +24,0 @@ onOpen={() => console.log('open!')}

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