Skip to content

Commit

Permalink
Update SearchIcons.js
Browse files Browse the repository at this point in the history
  • Loading branch information
anle9650 committed Mar 2, 2024
1 parent 434cdc1 commit 2ea4a85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/data/material/components/material-icons/SearchIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ function useLatest(value) {

export default function SearchIcons() {
const [keys, setKeys] = React.useState(null);
const [, startTransition] = React.useTransition();
const [theme, setTheme] = useQueryParameterState('theme', 'Filled');
const [selectedIcon, setSelectedIcon] = useQueryParameterState('selected', '');
const [query, setQuery] = useQueryParameterState('query', '');
Expand Down Expand Up @@ -573,7 +574,7 @@ export default function SearchIcons() {
<Input
autoFocus
value={query}
onChange={(event) => setQuery(event.target.value)}
onChange={(event) => startTransition(() => setQuery(event.target.value))}
placeholder="Search icons…"
inputProps={{ 'aria-label': 'search icons' }}
/>
Expand Down

0 comments on commit 2ea4a85

Please sign in to comment.