Skip to content

Commit

Permalink
Fixing wire:model on address_2
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThompsonTLDR authored Aug 18, 2020
1 parent 3bf6494 commit c2b47f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/views/bs/address.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
@php
$address2Options = $options;
$address2Options['id'] .= '_address_2';
if (($key = array_search('required', $address2Options)) !== false) {
if (($key = array_search('required', $address2Options, true)) !== false) {
unset($address2Options[$key]);
}
if (isset($options['wire:model'])) {
$address2Options['wire:model'] = 'address_2';
}
@endphp

{{ Form::text('address_2', optional($value)->address_2, $address2Options) }}
Expand Down

0 comments on commit c2b47f2

Please sign in to comment.