diff --git a/components/auto-complete/demo/antd.md b/components/auto-complete/demo/antd.md index 410226f9c7..a1b9418a67 100644 --- a/components/auto-complete/demo/antd.md +++ b/components/auto-complete/demo/antd.md @@ -25,7 +25,7 @@ class Complete extends React.Component { dataSource: [], } - handleChange = (value) => { + handleSearch = (value) => { this.setState({ dataSource: !value ? [] : [ value, @@ -46,7 +46,7 @@ class Complete extends React.Component { dataSource={dataSource} style={{ width: 200, height: 50 }} onSelect={onSelect} - onChange={this.handleChange} + onSearch={this.handleSearch} placeholder="input here" >