Skip to content

Commit

Permalink
Allow null prop for arrowRenderer to disable arrow
Browse files Browse the repository at this point in the history
Closes #1761
  • Loading branch information
JedWatson committed Oct 19, 2017
1 parent 2024844 commit 16f75fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,8 @@ class Select extends React.Component {
}

renderArrow () {
if (!this.props.arrowRenderer) return;

const onMouseDown = this.handleMouseDownOnArrow;
const isOpen = this.state.isOpen;
const arrow = this.props.arrowRenderer({ onMouseDown, isOpen });
Expand Down

0 comments on commit 16f75fd

Please sign in to comment.