Skip to content

FormTokenField opens its menu on blur in some cases #57085

@anomiex

Description

@anomiex

Description

When blurring the FormTokenField with __experimentalExpandOnFocus at its default value of false, the menu should not open when exiting the field.

Step-by-step reproduction instructions

  1. Go to https://wordpress.github.io/gutenberg/?path=/story/components-formtokenfield--async
  2. Type something in the input, then delete it.
  3. Click out of the field. Then possibly back in and out again.

Screenshots, screen recording, code snippet

video-2023-12-14_17.33.28.webm

Environment info

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes, No

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions