Disable form submission on every keydown event
This commit is contained in:
parent
b43b726587
commit
37eff2d980
@ -49,7 +49,6 @@ const app = new Vue({
|
|||||||
tax: false,
|
tax: false,
|
||||||
discounts: [],
|
discounts: [],
|
||||||
tax_id: [],
|
tax_id: [],
|
||||||
|
|
||||||
items: [],
|
items: [],
|
||||||
taxes: [],
|
taxes: [],
|
||||||
page_loaded: false,
|
page_loaded: false,
|
||||||
@ -310,6 +309,7 @@ const app = new Vue({
|
|||||||
let item_taxes = [];
|
let item_taxes = [];
|
||||||
|
|
||||||
setPromiseTimeout(200).then(() => this.$refs['name-input'][index].focus()); //add focus to new item name input
|
setPromiseTimeout(200).then(() => this.$refs['name-input'][index].focus()); //add focus to new item name input
|
||||||
|
|
||||||
if (item.tax_ids) {
|
if (item.tax_ids) {
|
||||||
item.tax_ids.forEach(function (tax_id, index) {
|
item.tax_ids.forEach(function (tax_id, index) {
|
||||||
if (this.taxes.includes(tax_id)) {
|
if (this.taxes.includes(tax_id)) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<div class="row save-buttons">
|
<div class="row save-buttons" @click="onSubmit">
|
||||||
{{ Form::saveButtons($routeCancel) }}
|
{{ Form::saveButtons($routeCancel) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
{!! Form::button(
|
{!! Form::button(
|
||||||
'<span v-if="form.loading" class="btn-inner--icon"><i class="aka-loader"></i></span> <span :class="[{\'ml-0\': form.loading}]" class="btn-inner--text">' . trans('general.save') . '</span>',
|
'<span v-if="form.loading" class="btn-inner--icon"><i class="aka-loader"></i></span> <span :class="[{\'ml-0\': form.loading}]" class="btn-inner--text">' . trans('general.save') . '</span>',
|
||||||
[':disabled' => 'form.loading', 'type' => 'submit', 'class' => 'btn btn-icon btn-success']) !!}
|
[':disabled' => 'form.loading', 'class' => 'btn btn-icon btn-success']) !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@stack('save_buttons_end')
|
@stack('save_buttons_end')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user