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]);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (contentRef.current) {
|
||||
if (contentRef.current.parentElement) {
|
||||
contentRef.current.parentElement.style.display = "block";
|
||||
}
|
||||
}
|
||||
}, [contentRef]);
|
||||
|
||||
return (
|
||||
<div className={cn("relative", className)}>
|
||||
{scrollShadow && (
|
||||
|
|
|
|||
Loading…
Reference in New Issue