Skip to content

[EuiColorPicker] onBlur is not triggered if the popup is not open #4803

@dej611

Description

@dej611

While testing the field with keyboard only, we found out that the EuiColorPicker onBlur handler is not triggered if the popup is not open at all.

A possible use case is:

  • Tab into the field
  • Change the color in the field without opening the modal (just delete the text + rewrite it)
  • Tab out of the field

We have some logic around color values that should trigger based on some conditions, but this bug stopped it in this scenario.

As workaround we're setting the onBlur on the outer node and checking for the current state of the popover.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions