Merge pull request #2129 from brkcvn/textarea-value

Textarea value not show in Bootstrap modal.
This commit is contained in:
Cüneyt Şentürk 2021-06-23 18:25:39 +03:00 committed by GitHub
commit 9fe61aace9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -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', []) !!}

View File

@ -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', []) !!}

View File

@ -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)) !!}
<div class="invalid-feedback d-block"