Skip to content

Commit

Permalink
Propagate slider focus events
Browse files Browse the repository at this point in the history
Closes #462
  • Loading branch information
inukshuk committed Jan 28, 2020
1 parent 0ef4e9a commit 878b54f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/slider.js
Expand Up @@ -113,10 +113,16 @@ class Slider extends React.PureComponent {
}, 100)

handleBlur = () => {
if (this.props.onBlur) {
this.props.onBlur(event)
}
this.setState({ hasFocus: false })
}

handleFocus = () => {
handleFocus = (event) => {
if (this.props.onFocus) {
this.props.onFocus(event)
}
this.setState({ hasFocus: true })
}

Expand Down

0 comments on commit 878b54f

Please sign in to comment.