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]);
|
||||
|
||||
useEffect(() => {
|
||||
setVisible(!!props.visible);
|
||||
}, [props.visible]);
|
||||
|
||||
return (
|
||||
<div className={classNames('media-gallery', { 'media-gallery--compact': compact })} style={sizeData.style} ref={node}>
|
||||
<div
|
||||
|
|
Loading…
Reference in a new issue