SearchResult: Use the method to toggle selection instead of setting it directly

This commit is contained in:
nathan 2024-09-17 15:30:35 -06:00
parent a2724d329c
commit 2e0010d138

View File

@ -569,7 +569,7 @@ export const SearchMixin = <T extends Constructor<Et2InputWidgetInterface &
else if([" ", "Enter"].includes(event.key) && this.currentResult)
{
event.preventDefault();
this.currentResult.selected = true;
this.toggleResultSelection(this.currentResult, true);
this.searchResultSelected();
}
}