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 ac8f7c7 commit 95a4e71Copy full SHA for 95a4e71
packages/uikit-workshop/src/scripts/components/pl-search/pl-search.js
@@ -75,6 +75,16 @@ class Search extends BaseComponent {
75
clearButtonText: props.string,
76
};
77
78
+ onInput = e => {
79
+ let value = e.target.value;
80
+
81
+ this.setState({
82
+ value: value,
83
+ });
84
85
+ this.onSuggestionsFetchRequested({ value }); // re-render search results immediately based on latest input value
86
+ };
87
88
// External Redux store not yet in use
89
_stateChanged(state) {}
90
@@ -325,6 +335,7 @@ class Search extends BaseComponent {
325
335
: 'Find a Pattern',
326
336
value,
327
337
onChange: this.onChange,
338
+ onInput: this.onInput,
328
339
329
340
330
341
return (
0 commit comments