mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that the Query Editor should be focused when switching between query tool tabs. Fixes #7441
This commit is contained in:
committed by
Akshay Joshi
parent
ea3203f466
commit
725726f083
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user