Skip to content

Commit

Permalink
Small fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstine committed Sep 22, 2022
1 parent 0b26b8c commit 62b1e7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/combobox-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function ComboboxControl( {
} );

const currentOption = options.find( ( option ) => option.value === value );
const currentLabel = currentOption?.label;
const currentLabel = currentOption?.label ?? undefined;
// Use a custom prefix when generating the `instanceId` to avoid having
// duplicate input IDs when rendering this component and `FormTokenField`
// in the same page (see https://github.com/WordPress/gutenberg/issues/42112).
Expand Down Expand Up @@ -236,8 +236,8 @@ function ComboboxControl( {
>
<div
className="components-combobox-control__suggestions-container"
onKeyDown={ onKeyDown }
tabIndex="-1"
onKeyDown={ onKeyDown }
>
<InputWrapperFlex
__next36pxDefaultSize={ __next36pxDefaultSize }
Expand Down

0 comments on commit 62b1e7e

Please sign in to comment.