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.
While testing the field with keyboard only, we found out that the
EuiColorPickeronBlur handler is not triggered if the popup is not open at all.A possible use case is:
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
onBluron the outer node and checking for the current state of the popover.