Skip to content

Commit 3e2ebb1

Browse files
committed
Fixes keyboard search history in the graph
1 parent b0d81f8 commit 3e2ebb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webviews/apps/shared/components/search/search-input.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export class GlSearchInput extends GlElement {
346346
this.searchHistoryPos = nextPos;
347347
const value = this.searchHistory[nextPos];
348348
if (value !== this.value) {
349-
this.value = value;
349+
this._value = value;
350350
this.updateHelpText();
351351
this.debouncedOnSearchChanged();
352352
}
@@ -357,7 +357,7 @@ export class GlSearchInput extends GlElement {
357357
}
358358

359359
private handleInsertToken(token: string) {
360-
this.value += `${this.value.length > 0 ? ' ' : ''}${token}`;
360+
this._value += `${this.value.length > 0 ? ' ' : ''}${token}`;
361361
window.requestAnimationFrame(() => {
362362
this.updateHelpText();
363363
// `@me` can be searched right away since it doesn't need additional text

0 commit comments

Comments
 (0)