filament icon indicating copy to clipboard operation
filament copied to clipboard

Select Component Options don't change if is multiple

Open ismaail opened this issue 7 months ago • 9 comments

Package

filament/forms

Package Version

3.2.92

Laravel Version

11.14.0

Livewire Version

No response

PHP Version

PHP 8.3.9

Problem description

In a Product Form, Variants are added with a Repeatable Component, and this Variants are used in a Select Components in another Section in the same Form.

✅ If the Select Component is single, the changes in the Variants Repeatable are reflected in the Variants Selects after the form is saved see video 1.

❌ But if the Select Component is multiple, I have to reload the page to see changes in the Select Component see video 2.

sidenote: if I remove the relationship in the Select Component, it works as expected.

Expected behavior

Select Options to change if a Variant is added or removed in the Form.

Steps to reproduce

  1. clone the repo
  2. create new Product,
  3. Add/Delete Variants and see if Select Component Options change without reloading the page

Reproduction repository (issue will be closed if this is not valid)

https://github.com/ismaail/filament_issue_2

Relevant log output

No response

Donate 💰 to fund this issue

  • You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you.
  • 100% of the funding will be distributed between the Filament core team to run all aspects of the project.
  • Thank you in advance for helping us make maintenance sustainable!
Fund with Polar

ismaail avatar Jul 08 '24 21:07 ismaail