From 59869fa42d68886cd1293ba48541ece1833b3fd7 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 22 Jul 2015 12:37:20 +0800 Subject: [PATCH] display label in select defaultly, fix #50 --- components/select/demo/basic.md | 6 +++--- components/select/index.jsx | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/select/demo/basic.md b/components/select/demo/basic.md index fb224fb99a..3a21d590f9 100644 --- a/components/select/demo/basic.md +++ b/components/select/demo/basic.md @@ -16,9 +16,9 @@ function handleChange(value) { React.render( , document.getElementById('components-select-demo-basic')); diff --git a/components/select/index.jsx b/components/select/index.jsx index f02b97efd0..fa119d25dd 100644 --- a/components/select/index.jsx +++ b/components/select/index.jsx @@ -8,6 +8,7 @@ module.exports = React.createClass({ return { prefixCls: 'ant-select', transitionName: 'slide-up', + optionLabelProp: 'children', showSearch: false }; },