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

react-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dropdown - npm Package Compare versions

Comparing version 1.4.0 to 1.4.2

11

dist/index.js

@@ -124,3 +124,6 @@ 'use strict';

var value = option.value || option.label || option;
var value = option.value;
if (typeof value === 'undefined') {
value = option.label || option;
}
var label = option.label || option.value || option;

@@ -189,3 +192,3 @@

value: function render() {
var _classNames, _classNames2, _classNames3;
var _classNames, _classNames2, _classNames3, _classNames4;

@@ -196,2 +199,3 @@ var _props2 = this.props,

menuClassName = _props2.menuClassName,
arrowClassName = _props2.arrowClassName,
className = _props2.className;

@@ -206,2 +210,3 @@

var menuClass = (0, _classnames2.default)((_classNames3 = {}, _defineProperty(_classNames3, baseClassName + '-menu', true), _defineProperty(_classNames3, menuClassName, !!menuClassName), _classNames3));
var arrowClass = (0, _classnames2.default)((_classNames4 = {}, _defineProperty(_classNames4, baseClassName + '-arrow', true), _defineProperty(_classNames4, arrowClassName, !!arrowClassName), _classNames4));

@@ -226,3 +231,3 @@ var value = _react2.default.createElement(

value,
_react2.default.createElement('span', { className: baseClassName + '-arrow' })
_react2.default.createElement('span', { className: arrowClass })
),

@@ -229,0 +234,0 @@ menu

{
"name": "react-dropdown",
"version": "1.4.0",
"version": "1.4.2",
"description": "React dropdown component",

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

@@ -98,2 +98,8 @@ react-dropdown

The `arrowClassName` prop is passed down to the arrow `span` , which also has the `Dropdown-arrow` class.
```JavaScript
<Dropdown arrowClassName='myArrowClassName' />
```
Check more examples in the example folder.

@@ -100,0 +106,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