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
The idea was that only the current item would be returned so that it could be used in dynamic components, or that at least the uuid of the current item would be included, so that it could be accessed.
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.
Package
filament/filament
Package Version
3.2.115
Laravel Version
11.9
Livewire Version
3.0
PHP Version
8.2.16
Problem description
It is not possible to access the current item within the schema method in the Repeater, and the entire Repeater state of all items is returned.
If you print the
$state
inside theitemLabel
method, you will see something like:Expected behavior
When using:
The idea was that only the current item would be returned so that it could be used in dynamic components, or that at least the
uuid
of the current item would be included, so that it could be accessed.If you print
$state
, you will see something like:So, I need to somehow do the following action:
Or, do we have some other way to send the data to a custom Livewire component within Repeater?
In the documentation https://filamentphp.com/docs/3.x/forms/advanced#injecting-the-current-state-of-a-field it says that the
array $state
would give me access to the itemcurrent
, not the entire state.Steps to reproduce
Crie um Repeater assim:
Tente acessar a última linha adicionada dentro do método
schema
da forma correta, para que funcione durante a renderização etcReproduction repository (issue will be closed if this is not valid)
https://github.com/stuartcusackie/filament-wizard-header-scroll-issue
Relevant log output
No response
Donate 💰 to fund this issue
The text was updated successfully, but these errors were encountered: