Skip to content

Commit

Permalink
[docs] Fix the Autocomplete Highlighting example (#34184)
Browse files Browse the repository at this point in the history
  • Loading branch information
hayawata3626 authored Oct 17, 2022
1 parent cb13ab4 commit 935f402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/data/material/components/autocomplete/Highlights.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default function Highlights() {
<TextField {...params} label="Highlights" margin="normal" />
)}
renderOption={(props, option, { inputValue }) => {
const matches = match(option.title, inputValue);
const matches = match(option.title, inputValue, { insideWords: true });
const parts = parse(option.title, matches);

return (
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/autocomplete/Highlights.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default function Highlights() {
<TextField {...params} label="Highlights" margin="normal" />
)}
renderOption={(props, option, { inputValue }) => {
const matches = match(option.title, inputValue);
const matches = match(option.title, inputValue, { insideWords: true });
const parts = parse(option.title, matches);

return (
Expand Down

0 comments on commit 935f402

Please sign in to comment.