diff --git a/resources/views/modals/customers/edit.blade.php b/resources/views/modals/customers/edit.blade.php index effce1212..60097f7e2 100644 --- a/resources/views/modals/customers/edit.blade.php +++ b/resources/views/modals/customers/edit.blade.php @@ -19,7 +19,7 @@ {{ Form::selectGroup('currency_code', trans_choice('general.currencies', 1), 'exchange-alt', $currencies, $customer->currency_code) }} - {{ Form::textareaGroup('address', trans('general.address'), $customer->address) }} + {{ Form::textareaGroup('address', trans('general.address'), null, $customer->address) }} {{ Form::hidden('type', 'customer') }} {!! Form::hidden('enabled', '1', []) !!} diff --git a/resources/views/modals/vendors/edit.blade.php b/resources/views/modals/vendors/edit.blade.php index f9980db67..f8447b916 100644 --- a/resources/views/modals/vendors/edit.blade.php +++ b/resources/views/modals/vendors/edit.blade.php @@ -19,7 +19,7 @@ {{ Form::selectGroup('currency_code', trans_choice('general.currencies', 1), 'exchange-alt', $currencies, $vendor->currency_code) }} - {{ Form::textareaGroup('address', trans('general.address')) }} + {{ Form::textareaGroup('address', trans('general.address'), null, $vendor->address) }} {{ Form::hidden('type', 'vendor') }} {!! Form::hidden('enabled', '1', []) !!} diff --git a/resources/views/partials/form/textarea_group.blade.php b/resources/views/partials/form/textarea_group.blade.php index fb4424bf7..98aac2ec9 100644 --- a/resources/views/partials/form/textarea_group.blade.php +++ b/resources/views/partials/form/textarea_group.blade.php @@ -14,9 +14,8 @@ {!! Form::textarea($name, $value, array_merge([ 'class' => 'form-control', 'data-name' => $name, - 'data-value' => $value, 'placeholder' => trans('general.form.enter', ['field' => $text]), - 'v-model' => !empty($attributes['v-model']) ? $attributes['v-model'] : (!empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.'. $name : 'form.' . $name), + '@input' => !empty($attributes['v-model']) ? $attributes['v-model'] . ' = $event.target.value' : (!empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.'. $name . ' = $event.target.value' : 'form.' . $name . ' = $event.target.value'), ], $attributes)) !!}