Skip to content

Commit

Permalink
Prevent scrolling the Name column into view when focusing rows in tables
Browse files Browse the repository at this point in the history
- fixes #179
  • Loading branch information
jpovixwm authored and qu1ck committed Mar 21, 2024
1 parent b09f6e9 commit 0f4a772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tables/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ export function EditableNameField(props: EditableNameFieldProps) {
if (ref.current != null) {
const row = ref.current.parentNode?.parentNode as HTMLDivElement;
row.onfocus = () => {
ref.current?.focus();
ref.current?.focus({ preventScroll: true });
};
return () => { row.onfocus = null; };
}
Expand Down

0 comments on commit 0f4a772

Please sign in to comment.