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
Hi,
I'm using livewire v3.5.6 & wire-element/modal v2.0.10.
I want to get the latest input using updated hook in my ModalComponent, but it's not working.
class AddLivewire extends ModalComponent
{
public $user;
public $mode;
public function updated($property) // not working
{
if ( $property = 'user' ) {
$this->mode = 'level 1';
}
}
public function updatedUser() // not working
{
$this->mode = 'level 1';
}
}
Edit :
My bad, forgot to add live in wire.model="user", it should be wire.model.live="user".
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,
I'm using livewire
v3.5.6
& wire-element/modalv2.0.10
.I want to get the latest input using updated hook in my ModalComponent, but it's not working.
Edit :
My bad, forgot to add
live
inwire.model="user"
, it should bewire.model.live="user"
.I'll close this discussion
Beta Was this translation helpful? Give feedback.
All reactions