From 9aa2a365f606fe595a346769a8342fd28e01fb4c Mon Sep 17 00:00:00 2001 From: Jesuye David Date: Wed, 4 Oct 2023 18:38:52 -0400 Subject: [PATCH] fix replaceAll is not a function --- src/ui/components/search/autocompletecomponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/components/search/autocompletecomponent.js b/src/ui/components/search/autocompletecomponent.js index 4a303abad..326048ceb 100644 --- a/src/ui/components/search/autocompletecomponent.js +++ b/src/ui/components/search/autocompletecomponent.js @@ -214,7 +214,7 @@ export default class AutoCompleteComponent extends Component { resultIndex: this._resultIndex, promptHeader: this._originalQuery.length === 0 ? this.promptHeader : null, listLabelIdName: this.listLabelIdName, - autocompleteContainerIdName: `yxt-AutoComplete-container-${this._config.name?.replaceAll('.', '-')}`, + autocompleteContainerIdName: `yxt-AutoComplete-container-${this._config.name?.replace(/\./g, '-') || ''}`, eventOptions: this.eventOptions(data) })); }