[[Quick Search]]で選択中の要素(item)のみを再描画する方法。`renderSuggestion()` を直接呼び出す。引数は[[chooser]]から生成する。
```ts
function rerenderSelected() {
const item = this.chooser.values?.[this.chooser.selectedItem];
const el = this.chooser.suggestions?.[this.chooser.selectedItem];
// Clear element
el.empty();
this.renderSuggestion(item, el as HTMLElement);
}
```
`this.chooser.selectedItem` の部分を変えれば、任意のindexのアイテムを再描画できる。