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,
|
||||
opened: state.opened,
|
||||
})}
|
||||
ref={(el) => {
|
||||
ref={(el: HTMLDivElement) => {
|
||||
internalRef.current = el;
|
||||
if (typeof ref === "function") {
|
||||
ref(el);
|
||||
|
Loading…
x
Reference in New Issue
Block a user