This commit is contained in:
2021-03-17 14:29:39 +00:00
parent b96d98ad7a
commit 7bf13b6bbe
2 changed files with 12 additions and 3 deletions

View File

@@ -107,6 +107,7 @@
:error-messages="form().serverErrors(this, 'notes')"
ref="notes"
data-cy="notes"
id="notes"
@input="fieldValueChanged('notes')"
auto-grow
></v-textarea>
@@ -348,7 +349,7 @@ export default {
}
this.toUsers.push(selected);
this.pickListSelectedUserId = 0;
this.pickListSelectedUserId = null;
this.updateSave();
},
ayaTypes: function() {
@@ -511,6 +512,7 @@ export default {
vm.obj.name = `${vm.$ay.t("MemoRe")} ${vm.obj.name}`;
vm.obj.notes = `\n\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n${header}\n\n${vm.obj.notes}`;
vm.obj.id = 0;
vm.composing = true;
generateMenu(vm);
window.$gz.form.setFormState({
@@ -519,7 +521,13 @@ export default {
valid: true,
loading: false
});
vm.updateSave();
this.$nextTick(() => {
let el = document.getElementById("notes");
el.focus();
el.setSelectionRange(0, 0);
});
}
//end methods