From 5311539e12de98d7982e3b62186b85c76be88923 Mon Sep 17 00:00:00 2001 From: Jo du Plessis Date: Sat, 15 Jun 2024 07:38:33 +0200 Subject: [PATCH] add description --- packages/core/src/popover/popover.tsx | 1 + packages/core/src/select/select.tsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/packages/core/src/popover/popover.tsx b/packages/core/src/popover/popover.tsx index f4e90a45..9159d08c 100644 --- a/packages/core/src/popover/popover.tsx +++ b/packages/core/src/popover/popover.tsx @@ -83,6 +83,7 @@ export const Popover = forwardRef((props: PopoverProps, ref) => { onDismiss(e) setReady(false) if (refocus) childRef.current?.focus() + console.log(childRef.current) } const handleKeyDownDocument = (e) => { diff --git a/packages/core/src/select/select.tsx b/packages/core/src/select/select.tsx index 5ee46fa5..ceba8976 100644 --- a/packages/core/src/select/select.tsx +++ b/packages/core/src/select/select.tsx @@ -35,6 +35,9 @@ import { IconLib } from '../icon' import { CoreViewProps, Size } from '../types' export type SelectProps = { + /** + * @description traps the focus within the options list + */ trapFocus?: boolean openOnFocus?: boolean openOnMount?: boolean