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.

Home Page:https://filamentphp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyValue UI not updating while using $set()

rickzim opened this issue · comments

Package

filament/filament

Package Version

v3.2.92

Laravel Version

v10.48.14

Livewire Version

v3.5.1

PHP Version

v8.3.6

Problem description

When using $set() on a Forms\Components\KeyValue field, the UI will not update properly to the newly set values when changed for the first time. However, internally the value is changed.

2024-06-27 14_13_40-Edit Post - Laravel

Simular Issues:
#9120
#2939

Expected behavior

When i change the KeyValue values, i expect the internal value to be the same as the UI.

Steps to reproduce

  1. Navigate to Posts
  2. Select an item
  3. Click on of the buttons to change the value of the Meta field.
  4. Refresh if not changed.

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

https://github.com/rickzim/demo-filament-key-value

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