fix(web): prevent auto-select from keeping old autoaccept positions highlighted

This commit is contained in:
Joshua Horton 2025-08-04 15:13:44 -05:00
parent 145f34f434
commit 265f0265fd

View file

@ -773,11 +773,10 @@ export class SuggestionBanner extends Banner {
if(suggestions.length > i) {
const suggestion = suggestions[i];
d.update(suggestion, optionFormat);
if(this.predictionContext.selected == suggestion) {
d.highlight(true);
}
d.highlight(this.predictionContext.selected == suggestion)
} else {
d.update(null, optionFormat);
d.highlight(false);
}
}