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.8.0 to 1.9.0

6

dist/index.js

@@ -10,4 +10,2 @@ "use strict";

var _reactDom = _interopRequireDefault(require("react-dom"));
var _classnames = _interopRequireDefault(require("classnames"));

@@ -61,2 +59,3 @@

};
_this.dropdownRef = (0, _react.createRef)();
_this.mounted = true;

@@ -223,3 +222,3 @@ _this.handleDocumentClick = _this.handleDocumentClick.bind(_assertThisInitialized(_this));

if (this.mounted) {
if (!_reactDom["default"].findDOMNode(this).contains(event.target)) {
if (!this.dropdownRef.current.contains(event.target)) {
if (this.state.isOpen) {

@@ -269,2 +268,3 @@ this.setState({

return _react["default"].createElement("div", {
ref: this.dropdownRef,
className: dropdownClass

@@ -271,0 +271,0 @@ }, _react["default"].createElement("div", {

{
"name": "react-dropdown",
"version": "1.8.0",
"version": "1.9.0",
"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