From 7670f8c0f3b2a640d6da9ee0b6a89eb455d74703 Mon Sep 17 00:00:00 2001 From: Vordgi Date: Mon, 14 Oct 2024 19:39:22 +0400 Subject: [PATCH 1/2] rd-306 fix scrollIntoViewIfNeeded in firefox --- packages/robindoc/src/assets/base.scss | 1 + .../src/components/elements/sidebar/sidebar-link/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/robindoc/src/assets/base.scss b/packages/robindoc/src/assets/base.scss index 4f798634..f09da219 100644 --- a/packages/robindoc/src/assets/base.scss +++ b/packages/robindoc/src/assets/base.scss @@ -17,6 +17,7 @@ body { --header-height: 60px; + position: relative; padding: 0; margin: 0; accent-color: var(--primary600, #ea580c); diff --git a/packages/robindoc/src/components/elements/sidebar/sidebar-link/index.tsx b/packages/robindoc/src/components/elements/sidebar/sidebar-link/index.tsx index 2b74c81f..8bbe6b1a 100644 --- a/packages/robindoc/src/components/elements/sidebar/sidebar-link/index.tsx +++ b/packages/robindoc/src/components/elements/sidebar/sidebar-link/index.tsx @@ -27,7 +27,7 @@ export const SidebarLink: React.FC = ({ link, branch, pathname if (isTarget) { scrollTimeoutRef.current = null; // eslint-disable-next-line @typescript-eslint/no-explicit-any - (node as any)?.parentElement?.scrollIntoViewIfNeeded(); + (node as any)?.parentElement?.scrollIntoViewIfNeeded?.(); } }} > From 8e217b3291f0041523b2a75c6bed42dbbb0ead2f Mon Sep 17 00:00:00 2001 From: Vordgi Date: Mon, 14 Oct 2024 19:40:43 +0400 Subject: [PATCH 2/2] rd-306 release 1.2.4 --- packages/robindoc/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/robindoc/package.json b/packages/robindoc/package.json index fd5bacb9..dc1cb630 100644 --- a/packages/robindoc/package.json +++ b/packages/robindoc/package.json @@ -1,6 +1,6 @@ { "name": "robindoc", - "version": "1.2.3", + "version": "1.2.4", "description": "", "main": "./lib/index.js", "scripts": {