From 88e3395ee9b7ae06317e502cfda9d057939fc65b Mon Sep 17 00:00:00 2001 From: Kuan Date: Sun, 4 Dec 2016 19:57:54 -0800 Subject: [PATCH 1/2] Update Select.js --- src/Select.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Select.js b/src/Select.js index bfeefc7554..4de837ea62 100644 --- a/src/Select.js +++ b/src/Select.js @@ -905,7 +905,8 @@ const Select = React.createClass({ renderArrow () { const onMouseDown = this.handleMouseDownOnArrow; - const arrow = this.props.arrowRenderer({ onMouseDown }); + const isOpen = this.state.isOpen; + const arrow = this.props.arrowRenderer({ onMouseDown, isOpen }); return ( Date: Sun, 4 Dec 2016 19:59:06 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 34c096ca2b..e5a991f884 100644 --- a/README.md +++ b/README.md @@ -339,7 +339,7 @@ function onInputKeyDown(event) { Property | Type | Default | Description :-----------------------|:--------------|:--------------|:-------------------------------- addLabelText | string | 'Add "{label}"?' | text to display when `allowCreate` is true - arrowRenderer | func | undefined | Renders a custom drop-down arrow to be shown in the right-hand side of the select: `arrowRenderer({ onMouseDown })` + arrowRenderer | func | undefined | Renders a custom drop-down arrow to be shown in the right-hand side of the select: `arrowRenderer({ onMouseDown, isOpen })` autoBlur | bool | false | Blurs the input element after a selection has been made. Handy for lowering the keyboard on mobile devices autofocus | bool | undefined | autofocus the component on mount autoload | bool | true | whether to auto-load the default async options set