@codecademy/gamut
68.3.068.3.1-alpha.910133.0
dist/PopoverContainer/types.d.ts~
dist/PopoverContainer/types.d.tsModified+2−1
Index: package/dist/PopoverContainer/types.d.ts
===================================================================
--- package/dist/PopoverContainer/types.d.ts
+++ package/dist/PopoverContainer/types.d.ts
@@ -52,10 +52,11 @@
*/
onRequestClose?: () => void;
/**
* The target element around which the popover will be positioned.
+ * Only ref objects (e.g. from useRef) are supported at runtime; RefCallback is not.
*/
- targetRef: RefObject<TargetRef>;
+ targetRef: RefObject<TargetRef | null>;
/**
* If true, it will allow outside page interaction. Popover container will still close when clicking outside of the popover or hitting the escape key.
*/
allowPageInteraction?: boolean;