You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im triying to use the laravel jetstream modal and modal dialog component in my project. For toggling the visibility of the modal I'm using a simple boolean that is bound per wire:model to the modal. But it seems like the internal @entangle of the jetstream modal breaks something.
<?php
namespace App\Http\Livewire;
use Livewire\Component;
class SeasonTable extends Component
{
public $showEditModal = false;
public function render()
{
return view('livewire.season-table');
}
}
The modal gets shown all the time even if the showEditModal boolean is set to false. Using the alpine js devtools it shows the show attribute of the modal as follows:
Dumping the value of show with a x-init="console.log(show)" results in a Proxy object:
The value of showEditModal also seems to be passed correctly to the x-data on the initial page load:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
im triying to use the laravel jetstream modal and modal dialog component in my project. For toggling the visibility of the modal I'm using a simple boolean that is bound per wire:model to the modal. But it seems like the internal
@entangle
of the jetstream modal breaks something.modal.blade.php
modal/dialog.blade.php
livewire/season-table.blade.php
SeasonTable.php
The modal gets shown all the time even if the
showEditModal
boolean is set to false. Using the alpine js devtools it shows the show attribute of the modal as follows:Dumping the value of show with a
x-init="console.log(show)"
results in a Proxy object:The value of
showEditModal
also seems to be passed correctly to the x-data on the initial page load:What am i missing here?
Thanks in advance!
effem
Beta Was this translation helpful? Give feedback.
All reactions