fix expand/collapse arrows for youtube videos (#7240)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
d7b055f428
Коммит
22efdbe6fb
@@ -107,7 +107,7 @@ export default class PostAttachmentOpenGraph extends React.PureComponent {
|
||||
}
|
||||
|
||||
componentDidUpdate() {
|
||||
postListScrollChange();
|
||||
setTimeout(postListScrollChange, 0);
|
||||
}
|
||||
|
||||
fetchData(url) {
|
||||
|
||||
@@ -134,6 +134,7 @@ export default class PostBodyAdditionalContent extends React.PureComponent {
|
||||
channelId={this.props.post.channel_id}
|
||||
link={link}
|
||||
show={this.state.embedVisible}
|
||||
onLinkLoaded={this.handleLinkLoaded}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,8 @@ export default class YoutubeVideo extends React.PureComponent {
|
||||
channelId: PropTypes.string.isRequired,
|
||||
currentChannelId: PropTypes.string.isRequired,
|
||||
link: PropTypes.string.isRequired,
|
||||
show: PropTypes.bool.isRequired
|
||||
show: PropTypes.bool.isRequired,
|
||||
onLinkLoaded: PropTypes.func
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
@@ -103,6 +104,7 @@ export default class YoutubeVideo extends React.PureComponent {
|
||||
} else {
|
||||
this.loadWithoutKey();
|
||||
}
|
||||
this.props.onLinkLoaded();
|
||||
}
|
||||
|
||||
loadWithoutKey() {
|
||||
|
||||
Ссылка в новой задаче
Block a user