mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-22 03:06:32 +10:00
docs: fix demo, close #1207
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user