revert: scroll container display change (#258)
This commit is contained in:
parent
d14fb262ea
commit
fcbc7f1118
|
|
@ -59,14 +59,6 @@ export function ScrollContainer({
|
||||||
}
|
}
|
||||||
}, [autoScrollToBottom, contentRef, scrollRef]);
|
}, [autoScrollToBottom, contentRef, scrollRef]);
|
||||||
|
|
||||||
useLayoutEffect(() => {
|
|
||||||
if (contentRef.current) {
|
|
||||||
if (contentRef.current.parentElement) {
|
|
||||||
contentRef.current.parentElement.style.display = "block";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, [contentRef]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cn("relative", className)}>
|
<div className={cn("relative", className)}>
|
||||||
{scrollShadow && (
|
{scrollShadow && (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue