Moved ancestry setting responsibility to trusted code

This commit is contained in:
Stefan Zermatten
2021-04-11 12:15:30 +02:00
parent 0f37a49b95
commit 7d3a51de9d
2 changed files with 26 additions and 5 deletions

View File

@@ -10,9 +10,14 @@ export default {
},
},
mounted(){
if (this.$refs.focusFirst && this.$refs.focusFirst.focus){
setTimeout(() => this.$refs.focusFirst.focus(), 300);
}
// Don't autofocus on mobile, it brings up the on-screen keyboard
if (this.$vuetify.breakpoint.smAndDown) return;
setTimeout(() => {
if (this.$refs.focusFirst && this.$refs.focusFirst.focus){
this.$refs.focusFirst.focus()
}
}, 300);
},
methods: {
change(path, value, ack){