Skip to content

Commit

Permalink
docs: Improved grammar in AutoComplete docs (#19875)
Browse files Browse the repository at this point in the history
Improved grammar in documentation for the AutoComplete component.
  • Loading branch information
JosiahRooney authored and orzyyyy committed Nov 22, 2019
1 parent 3906f4f commit 102efd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/auto-complete/index.en-US.md
Expand Up @@ -52,8 +52,8 @@ const dataSource = ['12345', '23456', '34567'];

## FAQ

### Why text composition system not works well with onSearch in controlled mode?
### Why doesn't the text composition system work well with onSearch in controlled mode?

Please use `onChange` to manage control state. `onSearch` is used for searching input which is not same as `onChange`. Besides, click on the option also not trigger the `onSearch` event.
Please use `onChange` to manage control state. `onSearch` is used for searching input which is not same as `onChange`. Besides, clicking on the option will not trigger the `onSearch` event.

Related issue: [#18230](https://github.com/ant-design/ant-design/issues/18230) [#17916](https://github.com/ant-design/ant-design/issues/17916)

0 comments on commit 102efd5

Please sign in to comment.