From a546820b1ec7696edfb2f03c409c29cf3445f55d Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Wed, 11 Sep 2019 14:13:07 -0500 Subject: [PATCH] Use requestAnimationFrame on EuiComboBox singleSelection close (#2326) * settimeout on singleselection close * use requestAnimationFrame instead * CL --- CHANGELOG.md | 1 + src/components/combo_box/combo_box.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 221e66a51e9..f64a0170898 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Corrected `EuiCodeBlock`'s proptype for `children` to be string or array of strings. ([#2324](https://github.com/elastic/eui/pull/2324)) - Fixed `onClick` TypeScript definition for `EuiPanel` ([#2330](https://github.com/elastic/eui/pull/2330)) +- Fixed `EuiComboBox` list reopening after closing on option selection in IE11 ([#2326](https://github.com/elastic/eui/pull/2326)) ## [`13.8.1`](https://github.com/elastic/eui/tree/v13.8.1) diff --git a/src/components/combo_box/combo_box.js b/src/components/combo_box/combo_box.js index f7a85c8bb38..ae960c0cf39 100644 --- a/src/components/combo_box/combo_box.js +++ b/src/components/combo_box/combo_box.js @@ -437,7 +437,7 @@ export class EuiComboBox extends Component { } if (singleSelection) { - this.closeList(); + requestAnimationFrame(this.closeList); } };