Skip to content

Commit

Permalink
Update combobox-control component readme (#36413)
Browse files Browse the repository at this point in the history
I just stumbled upon this wrong usage example. Didn't work.
  • Loading branch information
tdesero authored Nov 16, 2021
1 parent e1d8364 commit 39f883e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/combobox-control/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ These are the same as [the ones for `SelectControl`s](/packages/components/src/s
* WordPress dependencies
*/
import { ComboboxControl } from '@wordpress/components';
import { useState } from '@wordpress/compose';
import { useState } from '@wordpress/element';

const options = [
{
Expand Down Expand Up @@ -51,7 +51,7 @@ function MyComboboxControl() {
value={ fontSize }
onChange={ setFontSize }
options={ filteredOptions }
onInputChange={ ( inputValue ) =>
onFilterValueChange={ ( inputValue ) =>
setFilteredOptions(
options.filter( ( option ) =>
option.label
Expand Down

0 comments on commit 39f883e

Please sign in to comment.