Add a comment for weirdly placed div

pull/21833/head
Dariusz Niemczyk 2021-08-11 10:56:36 +02:00
parent ef3737d179
commit 723400ace6
No known key found for this signature in database
GPG Key ID: 28DFE7164F497CB6
1 changed files with 1 additions and 0 deletions

View File

@ -393,6 +393,7 @@ export default class MImageBody extends React.Component<IBodyProps, IState> {
key={`img-${showPlaceholder}`}
timeout={300}
>
{ /* This weirdly looking div is necessary here, otherwise SwitchTransition fails */ }
<div>
{ showPlaceholder && <div
className={classes}