docs: fix demo, close #1207

This commit is contained in:
Benjy Cui
2016-03-23 14:59:01 +08:00
parent f78b8b0aca
commit cd39283aca
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ class BasicDemo extends React.Component {
checkPass(rule, value, callback) {
const { validateFields } = this.props.form;
if (value) {
validateFields(['rePasswd']);
validateFields(['rePasswd'], { force: true });
}
callback();
}
+1 -1
View File
@@ -42,7 +42,7 @@ export default class Header extends React.Component {
<div id="search-box">
<Select combobox
searchPlaceholder="搜索组件..." optionLabelProp="nothing"
onChange={this.handleSearch.bind(this)}>
onSelect={this.handleSearch.bind(this)}>
{options}
</Select>
</div>