From 677d9a5f9b51004025b20f20f7442b75ab44d29e Mon Sep 17 00:00:00 2001 From: Ashik Meerankutty Date: Mon, 30 Mar 2020 12:13:49 +0530 Subject: [PATCH] fixed focus trap requires two clicks when focus is on EuiSelect --- src/components/form/select/select.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/form/select/select.tsx b/src/components/form/select/select.tsx index 301e070cf86..3ac6dfd8fcc 100644 --- a/src/components/form/select/select.tsx +++ b/src/components/form/select/select.tsx @@ -71,7 +71,7 @@ export const EuiSelect: FunctionComponent = ({ // notably for use in conjunction with EuiOutsideClickDetector. // See https://github.com/elastic/eui/pull/1926 for full discussion on // rationale and alternatives should this intervention become problematic. - e.nativeEvent.stopImmediatePropagation(); + e.nativeEvent.stopPropagation(); if (onMouseUp) onMouseUp(e); };