From 509dbd237f8fd29f36e73d6ba7e528c731004364 Mon Sep 17 00:00:00 2001 From: EwyynTomato Date: Fri, 12 Jun 2015 19:13:35 +0800 Subject: [PATCH] don't allow click selection on '+# more not shown' --- index.js | 2 +- src/DropdownInput.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 99d1066..2ff0410 100644 --- a/index.js +++ b/index.js @@ -160,7 +160,7 @@ var DropdownInput = React.createClass({ MenuItem, { key: index, - onSelect: this.handleOptionSelect.bind(this, index, item), + onSelect: disabled ? null : this.handleOptionSelect.bind(this, index, item), className: classes, onMouseEnter: this.handleMouseEnter.bind(this, index) }, part1, diff --git a/src/DropdownInput.js b/src/DropdownInput.js index 42ca1b1..8421274 100644 --- a/src/DropdownInput.js +++ b/src/DropdownInput.js @@ -153,7 +153,7 @@ var DropdownInput = React.createClass({ return ( {part1}{part2}{part3}