We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 889f6e3 commit 620cf17Copy full SHA for 620cf17
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "element-react",
3
- "version": "1.2.2",
+ "version": "1.2.3",
4
"description": "Element UI for React",
5
"private": false,
6
"main": "dist/npm/es5/index.js",
src/auto-complete/AutoComplete.jsx
@@ -25,6 +25,7 @@ type Props = {
25
triggerOnFocus: boolean,
26
fetchSuggestions: Function,
27
onSelect: Function,
28
+ onChange: Function,
29
onIconClick: Function,
30
icon: Element | string,
31
append: Element,
@@ -95,6 +96,10 @@ class AutoComplete extends Component {
95
96
this.setState({ suggestions: [] }); return;
97
}
98
99
+ if (this.props.onChange) {
100
+ this.props.onChange(value);
101
+ }
102
+
103
this.getData(value);
104
105
0 commit comments