[IMP] devtools: highlight searched components

This commit makes the component search more interactive by highlighting
the component search results on the page when navigating through them.
This commit is contained in:
Julien Carion (juca)
2023-10-03 15:56:39 +02:00
committed by Géry Debongnie
parent 32e4565131
commit 610c272104
@@ -333,6 +333,7 @@ export const store = reactive({
setSearchIndex(index) { setSearchIndex(index) {
this.componentSearch.searchIndex = index; this.componentSearch.searchIndex = index;
this.selectComponent(this.componentSearch.searchResults[index]); this.selectComponent(this.componentSearch.searchResults[index]);
this.highlightComponent(this.componentSearch.searchResults[index]);
}, },
// Replace the (...) content of a getter with the value returned by the corresponding get method // Replace the (...) content of a getter with the value returned by the corresponding get method