Remove keydown.enter events that disable the submission for line items

This commit is contained in:
benguozakinci@gmail.com
2021-09-02 10:54:36 +03:00
parent ccaa724a3f
commit f0b37c3bc9
2 changed files with 3 additions and 17 deletions

View File

@ -97,18 +97,7 @@ const app = new Vue({
methods: {
onRefFocus(ref, index) {
this.disableFormSubmission();
ref
? ref === 'price'
? setPromiseTimeout(100).then(() => this.$refs[ref][index].$children[0].$el.focus())
: setPromiseTimeout(100).then(() => this.$refs[ref][index].focus())
: {}
},
disableFormSubmission() {
const saveButtonEl = document.getElementsByClassName("btn btn-icon btn-success")[0];
saveButtonEl.setAttribute("type", "button");
setPromiseTimeout(100).then(() => this.$refs[ref][index].focus());
},
onCalculateTotal() {