Ensure that the Query Editor should be focused when switching between query tool tabs. Fixes #7441

This commit is contained in:
Aditya Toshniwal
2022-06-13 14:26:01 +05:30
committed by Akshay Joshi
parent ea3203f466
commit 725726f083
3 changed files with 13 additions and 0 deletions

View File

@@ -333,6 +333,7 @@ export default function Layout({groups, getLayoutInstance, layoutId, savedLayout
groups={defaultGroups}
onLayoutChange={(_l, currentTabId, direction)=>{
saveLayout(layoutObj.current, layoutId);
direction = direction == 'update' ? 'active' : direction;
if(Object.values(LAYOUT_EVENTS).indexOf(direction) > -1) {
layoutEventBus.current.fireEvent(LAYOUT_EVENTS[direction.toUpperCase()], currentTabId);
}