docs: update demo for: #6503

This commit is contained in:
Benjy Cui 2017-06-19 11:25:30 +08:00
parent 644e23fac6
commit 82d1957941

View File

@ -55,9 +55,11 @@ class App extends React.Component {
>
{getFieldDecorator('gender', {
rules: [{ required: true, message: 'Please select your gender!' }],
onChange: this.handleSelectChange,
})(
<Select placeholder="Select a option and change input text above">
<Select
placeholder="Select a option and change input text above"
onChange={this.handleSelectChange}
>
<Option value="male">male</Option>
<Option value="female">female</Option>
</Select>