From 784d91e8d5c9545f6489a6170f198672092eab41 Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Thu, 21 Sep 2023 14:37:31 -0700 Subject: [PATCH] [EuiComboBox] Remove `AutosizeInput` references + update snapshots --- .../__snapshots__/combo_box.test.tsx.snap | 73 ++++++------------- src/components/combo_box/combo_box.tsx | 15 ---- 2 files changed, 23 insertions(+), 65 deletions(-) diff --git a/src/components/combo_box/__snapshots__/combo_box.test.tsx.snap b/src/components/combo_box/__snapshots__/combo_box.test.tsx.snap index 747e46f60e83..6bf8b35fb618 100644 --- a/src/components/combo_box/__snapshots__/combo_box.test.tsx.snap +++ b/src/components/combo_box/__snapshots__/combo_box.test.tsx.snap @@ -16,26 +16,19 @@ exports[`EuiComboBox is rendered 1`] = ` data-test-subj="comboBoxInput" tabindex="-1" > -
-
- -
-
+ data-test-subj="comboBoxSearchInput" + id="generated-id__eui-combobox-id" + role="combobox" + style="inline-size: 2px;" + value="" + />
extends Component< }); } }; - autoSizeInputRefInstance: RefInstance = null; - autoSizeInputRefCallback: RefCallback = ( - ref - ) => { - this.autoSizeInputRefInstance = ref; - }; searchInputRefInstance: RefInstance = null; searchInputRefCallback: RefCallback = (ref) => { @@ -787,13 +780,6 @@ export class EuiComboBox extends Component< componentDidMount() { this._isMounted = true; - - // TODO: This will need to be called once the actual stylesheet loads. - setTimeout(() => { - if (this.autoSizeInputRefInstance) { - this.autoSizeInputRefInstance.copyInputStyles(); - } - }, 100); } static getDerivedStateFromProps( @@ -1044,7 +1030,6 @@ export class EuiComboBox extends Component< ref={this.comboBoxRefCallback} >