laravel-splade
laravel-splade copied to clipboard
x-splade-data within x-splade-modal
- Laravel Version: 9.50.2
- PHP Version: 8.1.14
- Splade JS Version (npm): 1.2.13
- Splade PHP Version (composer): 1.2.13
- Dev environment (OS, Sail/Valet/etc): ...
Description:
Is it possible to use x-splade-data within x-splade-modal? I have a set of tabs and I'd like to be able to create new tabs dynamically. When I try to access the x-splade-data within a modal it's not defined.
Steps To Reproduce Issue:
<x-splade-data default="{ name: 'Laravel Splade' }">
<Link href="#refund-info">
Show Refund Information
</Link>
<x-splade-modal name="refund-info">
<div class="mb-4" v-text="data.name"></div>
</x-splade-modal>
</x-splade-data>
Result:
[Vue warn]: Property "data" was accessed during render but is not defined on instance.