Skip to content

Commit

Permalink
Merge pull request #1839 from yext/hotfixv1.16.2
Browse files Browse the repository at this point in the history
fix breaking unit test and upgdated package version
  • Loading branch information
jesuyedavid committed Oct 4, 2023
2 parents 002cb23 + 9aa2a36 commit cc55531
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/answers-search-ui",
"version": "1.16.1",
"version": "1.16.2",
"description": "Javascript Search Programming Interface",
"main": "dist/answers-umd.js",
"repository": {
Expand Down
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
2 changes: 1 addition & 1 deletion src/ui/components/search/searchcomponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ export default class SearchComponent extends Component {
labelText: this.labelText,
inputLabelIdName: this.inputLabelIdName,
submitIcon: this.submitIcon,
searchBarContainerId: this._container.id,
searchBarContainerId: this._container?.id || '',
submitText: this.submitText,
clearText: this.clearText,
showClearButton: this._showClearButton,
Expand Down

0 comments on commit cc55531

Please sign in to comment.