fix: fix problem with ref element type
This commit is contained in:
parent
395c2f8ed1
commit
89950524f4
@ -349,7 +349,7 @@ const DrawerContent = forwardRef<HTMLDivElement, DrawerContentProps>(
|
|||||||
transitionDuration: dragState.isDragging ? "0s" : undefined,
|
transitionDuration: dragState.isDragging ? "0s" : undefined,
|
||||||
userSelect: dragState.isDragging ? "none" : undefined,
|
userSelect: dragState.isDragging ? "none" : undefined,
|
||||||
}}
|
}}
|
||||||
ref={(el) => {
|
ref={(el: HTMLDivElement | null) => {
|
||||||
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