[Graph] Fix closing behaviour of the field picker popover (#138799) (#138824)

(cherry picked from commit fe4553ddee)

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
This commit is contained in:
Kibana Machine 2022-08-15 12:02:13 -04:00 committed by GitHub
parent 8efb783c2d
commit 37b175caab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ export function FieldPicker({
aria-disabled={!hasFields}
onClick={() => {
if (hasFields) {
setOpen(true);
setOpen(!open);
}
}}
onClickAriaLabel={badgeDescription}