Remove keydown.enter events that disable the submission for line items
This commit is contained in:
13
resources/assets/js/views/common/documents.js
vendored
13
resources/assets/js/views/common/documents.js
vendored
@ -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() {
|
||||
|
Reference in New Issue
Block a user