Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix the type
Oleg Isonen1a66acb79c8c
diff --git a/packages/design-system/src/components/tree/tree.tsx b/packages/design-system/src/components/tree/tree.tsxindex c45b5fa525..040f740ab2 100644--- a/packages/design-system/src/components/tree/tree.tsx+++ b/packages/design-system/src/components/tree/tree.tsx@@ -265,9 +265,6 @@ export const Tree = <Data extends { id: string }>({onScroll={dropHandlers.handleScroll}><Box- // styled should support passing { current: T | undefined } to ref- // eslint-disable-next-line @typescript-eslint/ban-ts-comment- // @ts-ignore React.MutableRefObject cannot be passed to React.RefObjectref={keyboardNavigation.rootRef}onKeyDown={keyboardNavigation.handleKeyDown}onClick={keyboardNavigation.handleClick}@@ -337,7 +334,7 @@ const useKeyboardNavigation = <Data extends { id: string }>({return result;}, [root, getIsExpanded, getItemChildren]);- const rootRef = useRef<HTMLDivElement | undefined>();+ const rootRef = useRef<HTMLDivElement>(null);const handleKeyDown = (event: ReactKeyboardEvent) => {// skip if nothing is selected in the tree