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
19.28k stars 2.96k forks source link

Repeater add multiple fields instead of one #7902

Closed stontyg closed 1 year ago

stontyg commented 1 year ago

Package

filament/filament

Package Version

v3.0.27

Laravel Version

v10.19.0

Livewire Version

v3.0.0-beta.9

PHP Version

PHP 8.1.14

Problem description

Clicking the 'add item' button in Repeater field creates multiple fields instead of one.

Expected behavior

One field created when clicking the add button.

Steps to reproduce

Create a repeater component (integrated with an Eloquent relationship) nested in a Relation Manager. Add/Edit the repeater fields.

https://github.com/filamentphp/filament/assets/6479447/0dd7ccf6-8b3e-4e0a-b4ef-7fb6005de80e

Reproduction repository

-

Relevant log output

No response

github-actions[bot] commented 1 year ago

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

aeq-dev commented 1 year ago

I confirm this, It happens with me when I open the modal to add/edit record and close it, then reopen again : here it adds many fields