Commit 6a5a6fb
doc(autocomplete-filter): Update example to use Array.prototype.Inclues() (#10779)
Was researching the Auto-complete feature to add it to a project and this little enhancement is more straightforward when dealing with more complex strings.
Current example can't filter words with spaces. By using includes() it can filter full sentences.1 parent 0a3cfa7 commit 6a5a6fb
File tree
1 file changed
+1
-1
lines changed- src/material-examples/autocomplete-filter
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
0 commit comments