1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

feat(UI): textarea autofocus selecting a query tab, closes #166

This commit is contained in:
2022-01-09 12:28:01 +01:00
parent d9a3eab015
commit b4545b178f
2 changed files with 12 additions and 12 deletions

View File

@ -218,8 +218,13 @@ export default {
},
watch: {
isSelected (val) {
if (val)
if (val) {
this.changeBreadcrumbs({ schema: this.selectedSchema, query: `Query #${this.tab.index}` });
setTimeout(() => {
if (this.$refs.queryEditor)
this.$refs.queryEditor.editor.focus();
}, 0);
}
},
selectedSchema () {
this.changeBreadcrumbs({ schema: this.selectedSchema, query: `Query #${this.tab.index}` });