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