MediaGallery: fix "Show content" button
This commit is contained in:
parent
cc3e8ebd3b
commit
ca9abf3e5a
1 changed files with 4 additions and 0 deletions
|
@ -573,6 +573,10 @@ const MediaGallery: React.FC<IMediaGallery> = (props) => {
|
||||||
}
|
}
|
||||||
}, [node.current]);
|
}, [node.current]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setVisible(!!props.visible);
|
||||||
|
}, [props.visible]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classNames('media-gallery', { 'media-gallery--compact': compact })} style={sizeData.style} ref={node}>
|
<div className={classNames('media-gallery', { 'media-gallery--compact': compact })} style={sizeData.style} ref={node}>
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue