fix(popover/PopoverContent): specify ref element type

This commit is contained in:
p-sw 2024-07-12 01:43:11 +09:00
parent 2e441ff1e5
commit 9d0188eacc

View File

@ -230,7 +230,7 @@ const PopoverContent = React.forwardRef<HTMLDivElement, PopoverContentProps>(
...variantProps, ...variantProps,
opened: state.opened, opened: state.opened,
})} })}
ref={(el) => { ref={(el: HTMLDivElement) => {
internalRef.current = el; internalRef.current = el;
if (typeof ref === "function") { if (typeof ref === "function") {
ref(el); ref(el);