mirror of
https://github.com/flarum/core.git
synced 2025-01-18 06:38:25 +01: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:
parent
a004b8e057
commit
db71f8bf68
@ -137,7 +137,7 @@ export default class PostStreamScrubber extends Component {
|
||||
|
||||
setTimeout(() => this.scrollListener.start());
|
||||
|
||||
this.updateScrubberValues({ animate: true, forceHeightChange: true });
|
||||
this.stream.loadPromise.then(() => this.updateScrubberValues({ animate: true, forceHeightChange: true }));
|
||||
}
|
||||
|
||||
onremove() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user