fix(popover/PopoverContent): specify ref element type
This commit is contained in:
parent
2e441ff1e5
commit
9d0188eacc
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user