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:
parent
f08840f0e8
commit
c9aeabf545
1 changed files with 2 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue