diff --git a/README.md b/README.md index 635daafb4d..28637cfc72 100644 --- a/README.md +++ b/README.md @@ -347,7 +347,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 diff --git a/src/Select.js b/src/Select.js index ffd6b51daa..c9cb722b9c 100644 --- a/src/Select.js +++ b/src/Select.js @@ -910,7 +910,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 (