Ensure that the scroll position should be preserved for the result set in the query tool on tab change. #5296

This commit is contained in:
Nikhil Mohite
2022-10-11 10:53:46 +05:30
committed by GitHub
parent b100df3160
commit 19f96799df
3 changed files with 33 additions and 1 deletions

View File

@@ -333,6 +333,8 @@ export default function QueryToolComponent({params, pgWindow, pgAdmin, selectedN
} else if(LayoutHelper.isTabVisible(docker.current, PANELS.HISTORY)) {
LayoutHelper.focus(docker.current, PANELS.HISTORY);
}
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.GOTO_LAST_SCROLL);
}
});
window.addEventListener('beforeunload', onBeforeUnload);