Hi Guys,
I am using a button to change the keys and/or values in a KeyValue field that already contains data.
When i do this the UI does not change, but the value will.
return $form
->schema([
...
Forms\Components\KeyValue::make('meta'),
...
Forms\Components\Actions::make([
Forms\Components\Actions\Action::make('button')
->action(function (Set $set) {
$set('meta.a', 'foo');
$set('meta.b', 'bar');
$set('meta.c', 'baz');
}),
...
The weird thing is that it works when the meta field is either NULL or an empty array, OR when i manually make a change to the KeyValue field first.
Am i doing something wrong or is this a bug?
Thanks in advance!