We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44d758f commit 1cb7a9cCopy full SHA for 1cb7a9c
1 file changed
src/Shared/Components/Table/TableContent.tsx
@@ -124,9 +124,15 @@ const TableContent = ({
124
}
125
126
const focusActiveRow = (node: HTMLDivElement) => {
127
- if (node && !['INPUT', 'TEXTAREA'].includes(document.activeElement.tagName.toUpperCase())) {
+ if (
128
+ node &&
129
+ !['INPUT', 'TEXTAREA'].includes(document.activeElement.tagName.toUpperCase()) &&
130
+ node.dataset.active === 'true'
131
+ ) {
132
node.focus({ preventScroll: true })
133
scrollToShowActiveElementIfNeeded(node, rowsContainerRef.current, headerRef.current?.offsetHeight)
134
+ // eslint-disable-next-line no-param-reassign
135
+ node.dataset.active = 'false'
136
137
138
0 commit comments