Skip to content

Commit

Permalink
Dot syntax can't be used for livewire models
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThompsonTLDR authored Sep 8, 2020
1 parent b6a9870 commit 8694542
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/View/Components/Bs.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,9 @@ private function booleans()
*/
private function livewireModel()
{
if (Arr::get($this->options, 'livewire', false)) {
$this->options['wire:model'] = $this->dotName;
}
$this->options['wire:model'] = Arr::get($this->options, 'livewire', $this->options['id']);

unset($this->options['livewire']);
}

/**
Expand Down

0 comments on commit 8694542

Please sign in to comment.