|
@@ -644,7 +644,9 @@ export default {
|
|
|
...mapActions({
|
|
|
showTab(dispatch, payload) {
|
|
|
if (this.$refs[`${payload}-tab`])
|
|
|
- this.$refs[`${payload}-tab`].scrollIntoView(); // Only works if the ref exists, which it doesn't always
|
|
|
+ this.$refs[`${payload}-tab`].scrollIntoView({
|
|
|
+ block: "nearest"
|
|
|
+ }); // Only works if the ref exists, which it doesn't always
|
|
|
return dispatch("modals/manageStation/showTab", payload);
|
|
|
}
|
|
|
}),
|