Setting focus on stored previous element with Shift + Tab
问题 I am trying to set focus back to the previously focused page element using Shift + Tab keys to set the focus on the previously focused element within the data grid, whether that be a header cell or body cell. It is currently pushing the focus back to the header cells, I suspect because they have a tab index. I'm using the following that should be looking for the stored previously active element, and applying focus-visible class back to it: document.querySelector('.ag-body').tabIndex=0;