Skip to content

Commit

Permalink
Merge pull request #82 from react-component/fix-focused
Browse files Browse the repository at this point in the history
fix: should add focused class correctly, close: #81
  • Loading branch information
yiminghe committed Apr 29, 2016
2 parents 1567bf6 + 17bd4ea commit 379bcaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ const Select = React.createClass({
updateFocusClassName() {
const { refs, props } = this;
// avoid setState and its side effect
if (this._focused || this.state.open) {
if (this._focused) {
classes(refs.root).add(`${props.prefixCls}-focused`);
} else {
classes(refs.root).remove(`${props.prefixCls}-focused`);
Expand Down

0 comments on commit 379bcaa

Please sign in to comment.