Await updatePosition in mounted hook

updatePosition is asynchronous, so we should await it, otherwise
it may not be run correctly (resulting in the navigate pane
being disabled).
This commit is contained in:
Richard Bowman 2024-03-12 17:18:04 +00:00
parent f08840f0e8
commit c9aeabf545

View file

@ -257,7 +257,7 @@ export default {
}
},
mounted() {
async mounted() {
// Reload saved settings
this.stepSize =
this.getLocalStorageObj("navigation_stepSize") || this.stepSize;
@ -280,7 +280,7 @@ export default {
);
});
// Update the current position in text boxes
this.updatePosition();
await this.updatePosition();
},
beforeDestroy() {