From 583d885b404bd042f01c249d99b1042c6c389dec Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 23 Aug 2015 15:13:21 +0800 Subject: [PATCH] Fix select className --- components/select/index.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/select/index.jsx b/components/select/index.jsx index 2d9fcad792..ae62fdf361 100644 --- a/components/select/index.jsx +++ b/components/select/index.jsx @@ -11,14 +11,15 @@ var AntSelect = React.createClass({ }; }, render() { - var sizeClass = ''; + let sizeClass = ''; if (this.props.size === 'large') { sizeClass = 'ant-select-lg'; } else if (this.props.size === 'small') { sizeClass = 'ant-select-sm'; } + let className = this.props.className || ' '; return ( - ); } });