Skip to content

Commit

Permalink
fix: should add focused class correctly, close: #81
Browse files Browse the repository at this point in the history
  • Loading branch information
benjycui committed Apr 29, 2016
1 parent 1567bf6 commit 17bd4ea
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 17bd4ea

Please sign in to comment.