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
I made a slideover, and added a livewire component inside it (laravel comments with livewire
Slideover Code <x-wire-elements-pro::bootstrap.slide-over :content-padding="false"> @livewire('tenant.modules.tasks.components.slide-over.task-detail-comments') </x-wire-elements-pro::bootstrap.slide-over>
Livewire Controller
`<?php
namespace App\Http\Livewire\Tenant\Modules\Tasks\Components\SlideOver;
use App\Models\Tenant\Task;
use Livewire\Component;
class TaskDetailComments extends Component
{
public $task = 1;
public function mount(Task $task)
{
$this->task = $task;
}
public function render()
{
return view('livewire.tenant.modules.tasks.components.slide-over.task-detail-comments');
}
}`
@PhiloNL I tried that too, I also actually got it working by adding an actual comments componentn to the page that calls the modal - but only the by displaying an actual comment - <livewire:comments :model="$task" /> (just the script tags dont work on their own on the calling page) its not gonna be any good to me though as i dont need the comments on the calling page :) i just need it on the modal.
I made a slideover, and added a livewire component inside it (laravel comments with livewire
Slideover Code
<x-wire-elements-pro::bootstrap.slide-over :content-padding="false"> @livewire('tenant.modules.tasks.components.slide-over.task-detail-comments') </x-wire-elements-pro::bootstrap.slide-over>
Livewire Controller
Livewire blade
The issue comes with loading the <x-comments::scripts /> when used in a slideover component
Any ideas @PhiloNL
The text was updated successfully, but these errors were encountered: