Progress on forms overhaul: insert lib node broken

This commit is contained in:
Stefan Zermatten
2023-04-17 21:43:46 +02:00
parent d643886a7f
commit cf09abaa57
18 changed files with 274 additions and 96 deletions

View File

@@ -19,22 +19,12 @@ export default {
default: () => ({}),
},
},
mounted(){
// 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){
if (!Array.isArray(path)){
change(path, value, ack) {
if (!Array.isArray(path)) {
path = [path];
}
this.$emit('change', {path, value, ack});
this.$emit('change', { path, value, ack });
}
},
}