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