From 772e4c7a8e9ed851cb55b4c0e7f873a3441db7ad Mon Sep 17 00:00:00 2001 From: RitaDias Date: Fri, 26 Apr 2024 08:27:09 +0200 Subject: [PATCH] fix(sanity): remove smooth behavior --- .../inputs/PortableText/hooks/useScrollSelectionIntoView.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/sanity/src/core/form/inputs/PortableText/hooks/useScrollSelectionIntoView.tsx b/packages/sanity/src/core/form/inputs/PortableText/hooks/useScrollSelectionIntoView.tsx index b09c633440d..bbf797ada23 100644 --- a/packages/sanity/src/core/form/inputs/PortableText/hooks/useScrollSelectionIntoView.tsx +++ b/packages/sanity/src/core/form/inputs/PortableText/hooks/useScrollSelectionIntoView.tsx @@ -14,7 +14,6 @@ export function useScrollSelectionIntoView(scrollElement: HTMLElement | null) { return } scrollIntoView(leafEl, { - behavior: 'smooth', scrollMode: 'if-needed', boundary: scrollElement, block: 'nearest',