From d2b540e62f27dd5ad4933ff3070e073870329a21 Mon Sep 17 00:00:00 2001 From: dhiraj Date: Wed, 28 Oct 2015 13:38:43 +0530 Subject: [PATCH] updated handleChange and handleOpen properties for react 0.14.0 version --- lib/select-box.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/select-box.js b/lib/select-box.js index c5ba34a..63b10ba 100644 --- a/lib/select-box.js +++ b/lib/select-box.js @@ -100,7 +100,7 @@ module.exports = React.createClass({displayName: 'exports', } else { this.updatePendingValue(val, cb) || this.props.onChange(val) this.handleClose() - this.refs.button.getDOMNode().focus() + this.refs.button.focus() } }.bind(this) }, @@ -140,7 +140,7 @@ module.exports = React.createClass({displayName: 'exports', handleOpen: function (event) { interceptEvent(event) this.setState({open: true}, function () { - this.refs.menu.getDOMNode().focus() + this.refs.menu.focus() }) },