Skip to content

Commit

Permalink
[IMP] devtools: highlight component on select
Browse files Browse the repository at this point in the history
Small imp to highlight a component when it gets selected in the tree to
provide better visual feedback to the user when he is using arrow keys
navigation.
  • Loading branch information
juliusc2066 authored and ged-odoo committed Oct 24, 2023
1 parent 166cada commit db3499f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/devtools/src/devtools_app/store/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export const store = reactive({
}
component.selected = true;
highlightChildren(component);
this.highlightComponent(path);
const details = await evalFunctionInWindow(
"getComponentDetails",
[component.path],
Expand Down Expand Up @@ -334,7 +335,6 @@ export const store = reactive({
setSearchIndex(index) {
this.componentSearch.searchIndex = 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
Expand Down

0 comments on commit db3499f

Please sign in to comment.