From 4d9141540bb064fb07885d9dd44d23da91e0d86c Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Tue, 10 Sep 2019 17:43:56 -0500 Subject: [PATCH 1/3] settimeout on singleselection close --- src/components/combo_box/combo_box.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/combo_box/combo_box.js b/src/components/combo_box/combo_box.js index f7a85c8bb38..2e6eaf249eb 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(); + setTimeout(this.closeList, 50); } }; From 9ea7d53a97d31cc08dd51e41bf06d5d90bc34a69 Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Wed, 11 Sep 2019 10:22:07 -0500 Subject: [PATCH 2/3] use requestAnimationFrame instead --- src/components/combo_box/combo_box.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/combo_box/combo_box.js b/src/components/combo_box/combo_box.js index 2e6eaf249eb..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) { - setTimeout(this.closeList, 50); + requestAnimationFrame(this.closeList); } }; From b23b96fff0ce517a173993501a060c8a5122d6c2 Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Wed, 11 Sep 2019 10:24:59 -0500 Subject: [PATCH 3/3] CL --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c751602e84..1533eba4bb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ **Bug fixes** - Corrected `EuiCodeBlock`'s proptype for `children` to be string or array of strings. ([#2324](https://github.com/elastic/eui/pull/2324)) +- 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)