mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +02:00
Execute oncreate scrubber update after loadPromise has completed
This way, we ensure that the initial position (and data) of the scrubber is correct. Otherwise, we get blank dates / incorrect location.
This commit is contained in:
@@ -137,7 +137,7 @@ export default class PostStreamScrubber extends Component {
|
|||||||
|
|
||||||
setTimeout(() => this.scrollListener.start());
|
setTimeout(() => this.scrollListener.start());
|
||||||
|
|
||||||
this.updateScrubberValues({ animate: true, forceHeightChange: true });
|
this.stream.loadPromise.then(() => this.updateScrubberValues({ animate: true, forceHeightChange: true }));
|
||||||
}
|
}
|
||||||
|
|
||||||
onremove() {
|
onremove() {
|
||||||
|
Reference in New Issue
Block a user