diff --git a/src/components/searchbar/searchbar.ts b/src/components/searchbar/searchbar.ts index f2e4ea4bea..fce18b0c18 100644 --- a/src/components/searchbar/searchbar.ts +++ b/src/components/searchbar/searchbar.ts @@ -188,7 +188,9 @@ export class Searchbar extends BaseInput { */ _inputUpdated() { const ele = this._searchbarInput.nativeElement; - if (ele) { + // It is important not to re-assign the value if it is the same, because, + // otherwise, the caret is moved to the end of the input + if (ele && ele.value !== this.value) { ele.value = this.value; } this.positionElements();