filament icon indicating copy to clipboard operation
filament copied to clipboard

Color Picker loosing the value if used inside the Repeater

Open ManojKiranA opened this issue 3 years ago • 8 comments

Package

filament/filament

Package Version

2.15

Laravel Version

9.19

Livewire Version

No response

PHP Version

8.1.1

Problem description

When I used the color picker inside the Repeater component all the previous color picker field that has value is becoming null on adding new item.

Expected behavior

All the existing state should be maintained across the network

Steps to reproduce

After setting up the project locally follow the below steps.

  1. Go to user create page
  2. Try to add multiple items in Preferred Colors Repeater field
  3. On adding new items you can see all the previous value are disappearing

Reproduction repository

https://github.com/ManojKiranAppathurai/filament-color-picker-issue

Relevant log output

No response

ManojKiranA avatar Aug 08 '22 07:08 ManojKiranA

Does #3402 fix this?

danharrin avatar Aug 08 '22 07:08 danharrin

I am using the latest filament version. I think it doesn't fix the issue

ManojKiranA avatar Aug 08 '22 07:08 ManojKiranA

I am using the latest filament version. I think it doesn't fix the issue

The fix in that PR hasn't been released yet in a new Filament version.

Could you set dev-2.x as your Filament version in composer.json as see if the issue still occurs, @ManojKiranAppathurai?

zepfietje avatar Aug 08 '22 08:08 zepfietje

you mean 2.x-dev

ManojKiranA avatar Aug 08 '22 08:08 ManojKiranA

you mean 2.x-dev

Whoops sorry, yeah:

"filament/filament": "2.x-dev",

zepfietje avatar Aug 08 '22 08:08 zepfietje

nope its still the same. I have updated the repo

ManojKiranA avatar Aug 08 '22 08:08 ManojKiranA

Please investigate the issue yourself and provide a PR fix if you can :)

danharrin avatar Aug 08 '22 08:08 danharrin

Please investigate the issue yourself and provide a PR fix if you can :)

will try

ManojKiranA avatar Aug 09 '22 11:08 ManojKiranA

I cannot replicate this issue in the latest Filament version

https://user-images.githubusercontent.com/41773797/184987137-1adbc16b-5bb7-4a6d-9ce6-0dd5977df4f3.mov

danharrin avatar Aug 16 '22 21:08 danharrin