filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
18.09k stars 2.83k forks source link

Cannot read properties of null (reading 'nextSibling') on click in "add" in Repeater #9442

Closed wallacemaxters closed 11 months ago

wallacemaxters commented 11 months ago

Package

filament/filament

Package Version

v3.0.76

Laravel Version

10.30.1

Livewire Version

v3.0.0

PHP Version

8.2.12

Problem description

When I use the Repeater component, clicking the "Add" button generates an error in Browser console:

Cannot read properties of null (reading 'nextSibling') on click in "add" in Repeater

The following code is an example that can reproduce the error:

The folow code is a example of i used

Forms\Components\Repeater::make('members')->schema([
   // 
])

Expected behavior

Should add another block of fields inside the Repeater

Steps to reproduce

Add a Repeater to a Resource and click Add

Reproduction repository

https://github.com/filamentphp/filament

Relevant log output

No response

github-actions[bot] commented 11 months ago

Hey @wallacemaxters! 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.