mirror of
https://github.com/nasa/openmct.git
synced 2025-04-12 21:53:07 +00:00
fixed console error with save + using this.$nextTick instead of setTimeout. (#2516)
This commit is contained in:
parent
cab51f2665
commit
8825a458dc
@ -182,10 +182,12 @@
|
||||
},
|
||||
inject: ['dismiss', 'element', 'buttons', 'dismissable'],
|
||||
mounted() {
|
||||
this.$refs.element.appendChild(this.element);
|
||||
setTimeout(() => {
|
||||
this.getElementForFocus().focus();
|
||||
}, 0);
|
||||
const element = this.$refs.element;
|
||||
element.appendChild(this.element);
|
||||
const elementForFocus = this.getElementForFocus() || element;
|
||||
this.$nextTick(() => {
|
||||
elementForFocus.focus();
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
destroy: function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user