class GeneralFormModal extends Component
{
public $listeners = [
'toggle' => 'toggle',
];
...
public function toggle($model, $action, $id = null)
{
$this->_model = $model;
$this->_action = $action;
$this->_id = $id;
$this->dispatchBrowserEvent('toggleGeneralFormModal');
}
...
But the final render is..
As you can see, "emit" event instead of "emitTo" (the one I called for on the PHP).
Also, even with only "emit", it looks like the parameters aren't being treated correctly (even though the image shows that the rendered action has those parameters on it) when I click on the action button:
Illuminate\Contracts\Container\BindingResolutionException
Unable to resolve dependency [Parameter #1 [ <required> $action ]] in class App\Http\Livewire\GeneralFormModal
To Reproduce...
Simply create a action with "emitTo" and parameters.
Suggestions
No idea. I swear I've tried everything I could think of.
Have you searched through other issues to see if your problem is already reported or has been fixed?
Did you read the documentation?
Have you tried to publish the views?
You can publish the views to make sure there is no "old code" trapped in views which are not up-to-date.
To publish, run:
php artisan vendor:publish --tag=livewire-powergrid-views
Is there an error in the console?
Software Version
Theme
Describe the bug
What happened?
Trying to setup action with emitTo (open a bootstrap custom modal):
But the final render is..
As you can see, "emit" event instead of "emitTo" (the one I called for on the PHP).
Also, even with only "emit", it looks like the parameters aren't being treated correctly (even though the image shows that the rendered action has those parameters on it) when I click on the action button:
To Reproduce...
Simply create a action with "emitTo" and parameters.
Suggestions
No idea. I swear I've tried everything I could think of.