Skip to content

Commit

Permalink
fix replaceAll is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
jesuyedavid committed Oct 4, 2023
1 parent 546df87 commit 9aa2a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/components/search/autocompletecomponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}));
}
Expand Down

0 comments on commit 9aa2a36

Please sign in to comment.