Commit 2ea4a85 1 parent 434cdc1 commit 2ea4a85 Copy full SHA for 2ea4a85
File tree 1 file changed +2
-1
lines changed
docs/data/material/components/material-icons
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -480,6 +480,7 @@ function useLatest(value) {
480
480
481
481
export default function SearchIcons ( ) {
482
482
const [ keys , setKeys ] = React . useState ( null ) ;
483
+ const [ , startTransition ] = React . useTransition ( ) ;
483
484
const [ theme , setTheme ] = useQueryParameterState ( 'theme' , 'Filled' ) ;
484
485
const [ selectedIcon , setSelectedIcon ] = useQueryParameterState ( 'selected' , '' ) ;
485
486
const [ query , setQuery ] = useQueryParameterState ( 'query' , '' ) ;
@@ -573,7 +574,7 @@ export default function SearchIcons() {
573
574
< Input
574
575
autoFocus
575
576
value = { query }
576
- onChange = { ( event ) => setQuery ( event . target . value ) }
577
+ onChange = { ( event ) => startTransition ( ( ) => setQuery ( event . target . value ) ) }
577
578
placeholder = "Search icons…"
578
579
inputProps = { { 'aria-label' : 'search icons' } }
579
580
/>
You can’t perform that action at this time.
0 commit comments