From 17bd4eabdbbed40fe77528ca71aebed3dd80a613 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Fri, 29 Apr 2016 10:30:07 +0800 Subject: [PATCH] fix: should add focused class correctly, close: #81 --- src/Select.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Select.jsx b/src/Select.jsx index 984fd9617..f355f2b68 100644 --- a/src/Select.jsx +++ b/src/Select.jsx @@ -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`);