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 0.5.1 to 0.6.1

9

dist/index.js

@@ -138,2 +138,6 @@ "use strict";

value: function render() {
var _props = this.props;
var controlClassName = _props.controlClassName;
var menuClassName = _props.menuClassName;
var value = React.createElement(

@@ -146,3 +150,3 @@ "div",

"div",
{ className: "Dropdown-menu" },
{ className: menuClassName },
this.buildMenu()

@@ -161,3 +165,3 @@ ) : null;

"div",
{ className: "Dropdown-control", onMouseDown: this.handleMouseDown.bind(this), onTouchEnd: this.handleMouseDown.bind(this) },
{ className: controlClassName, onMouseDown: this.handleMouseDown.bind(this), onTouchEnd: this.handleMouseDown.bind(this) },
value,

@@ -175,3 +179,4 @@ React.createElement("span", { className: "Dropdown-arrow" })

Dropdown.defaultProps = { controlClassName: "Dropdown-control", menuClassName: "Dropdown-menu" };
module.exports = Dropdown;

@@ -98,4 +98,5 @@ 'use strict';

render() {
const { controlClassName, menuClassName } = this.props;
let value = (<div className='placeholder'>{this.state.selected.label}</div>);
let menu = this.state.isOpen ? <div className='Dropdown-menu'>{this.buildMenu()}</div> : null;
let menu = this.state.isOpen ? <div className={menuClassName}>{this.buildMenu()}</div> : null;

@@ -109,3 +110,3 @@ let dropdownClass = classNames({

<div className={dropdownClass}>
<div className='Dropdown-control' onMouseDown={this.handleMouseDown.bind(this)} onTouchEnd={this.handleMouseDown.bind(this)}>
<div className={controlClassName} onMouseDown={this.handleMouseDown.bind(this)} onTouchEnd={this.handleMouseDown.bind(this)}>
{value}

@@ -120,3 +121,3 @@ <span className='Dropdown-arrow' />

}
Dropdown.defaultProps = { controlClassName: 'Dropdown-control', menuClassName: 'Dropdown-menu'};
export default Dropdown;
{
"name": "react-dropdown",
"version": "0.5.1",
"version": "0.6.1",
"description": "React dropdown component",

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

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