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
class Item extends Component
{
public $opportunity;
public $opportunityId;
public function render()
{
return view('livewire.company.opportunity.item');
}
public function showLost($id){
$this->opportunityId = $id;
$this->dispatch('open-modal', id: 'show-lost');
}
public function onLost()
{
dd($this->opportunityId);
}
}
In showLost(), the value of $this->opportunityId is available, but the value of $this->opportunityId is not available in onLost(), it is null
If Nesting Components is not used. then everything is fine.
May I ask how this problem can be solved? Is it a bug?
Expected behavior
...
Steps to reproduce
...
Reproduction repository
...
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
Hey @shebaoting! We're sorry to hear that you've hit this issue. 💛
However, it looks like you forgot to fill in the reproduction repository URL. Can you edit your original post and then we'll look at your issue?
We need a public GitHub repository which contains a Laravel app with the minimal amount of Filament code to reproduce the problem. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. That would allow us to download it and review your bug much easier, so it can be fixed quicker. Please make sure to include a database seeder with everything we need to set the app up quickly.
Also, it doesn't look like you've provided much information on how to replicate the issue. Please edit your original post with clear steps we need to take.
Package
filament/filament
Package Version
3.0
Laravel Version
11
Livewire Version
3.0
PHP Version
8.3
Problem description
Package
Other
Package Version
v3.0.0
How can we help you?
parent component
child component
In showLost(), the value of $this->opportunityId is available, but the value of $this->opportunityId is not available in onLost(), it is null
If Nesting Components is not used. then everything is fine.
May I ask how this problem can be solved? Is it a bug?
Expected behavior
...
Steps to reproduce
...
Reproduction repository
...
Relevant log output
No response
The text was updated successfully, but these errors were encountered: