-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Option duplications when used within a sortable Repeater #41
Comments
I checked with others, and it appears there's a bug in async Alpine. @nocodelab
|
that's great! thanks @CodeWithDennis! |
It looks like the issue isn't solved in the latest Filament release. I'll need to investigate more and might ask for assistance. |
Maybe it's related to the wire:key assignment. |
Yes, this creates problems, but without it, the field won't be reactive/live. So, we have to find a better solution. |
Why is the field not reactive/live without setting the |
Adding wire:key also makes the field flicker. So, we gotta figure out a better way to fix this. Without the (Removing the wire:key doesn't solve this issue BTW) public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('name')
->live(),
SelectTree::make('categories')
->placeholder(__('Select categories'))
->label(__('Categories'))
->relationship('categories', 'name', 'parent_id')
->enableBranchNode()
->disabled(fn(Forms\Get $get) => filled($get('name'))),
])->columns(1);
} |
@nocodelab any update on this one? did you fix your problem? |
Nope, I just switched to normal select inputs…Giuseppe M.Sent from my iPhone 📱 / Excuse my brevityOn 16 Apr 2024, at 13:44, Chandra Aulia Tama ***@***.***> wrote:
@nocodelab any update on this one? did you fix your problem?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
What happened?
When the SelectTree field is used within a sortable Repeater a duplication behaviour happens.
Have a look at the video attached:
Screen.Recording.2023-11-16.at.11.20.50.mov
How to reproduce the bug
Simply use the SelectTree field in any repeater.
Package Version
3.1
PHP Version
8.2
Laravel Version
10
Which operating systems does with happen with?
No response
Notes
No response
The text was updated successfully, but these errors were encountered: