Skip to content

Commit

Permalink
don't override placeholder by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhauck committed Oct 31, 2023
1 parent 18aa7f2 commit 032fc3f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/map-select-tools/map-select-tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,9 @@ export class MapSelectTools {
async componentDidLoad(): Promise<void> {
await this._init();
await this._searchWidget.when(() => {
this._searchWidget.allPlaceholder = this._translations.placeholder;
this._searchWidget.defaultSources.forEach(s => {
s.placeholder = this._translations.placeholder;
})
this._searchWidget.allPlaceholder = this.searchConfiguration?.allPlaceholder &&
this.searchConfiguration.allPlaceholder.toLowerCase() !== "find address or place" ?
this.searchConfiguration.allPlaceholder : this._translations.placeholder;
})
}

Expand Down

0 comments on commit 032fc3f

Please sign in to comment.