Wrong order after saving a page with a KeyValue field

As its shown in the GIF, after saving the form the order of the KeyValue (json column) rows get reset to the original state. After refreshing the page the order is correct
public function getFormSchema(): array
{
return [
Tabs::make('Pages')
->statePath('pages')
->tabs([
Tabs\Tab::make('FAQ')
->schema([
KeyValue::make('faq')
->disableLabel()
->keyLabel('Question')
->valueLabel('Réponse')
->reorderable(),
]),
]),
];
}
public function getFormSchema(): array
{
return [
Tabs::make('Pages')
->statePath('pages')
->tabs([
Tabs\Tab::make('FAQ')
->schema([
KeyValue::make('faq')
->disableLabel()
->keyLabel('Question')
->valueLabel('Réponse')
->reorderable(),
]),
]),
];
}
6 Replies
Óscar
Óscar15mo ago
Any solution? same problem here
MiloudiMohamed
MiloudiMohamedOP15mo ago
I'm not sure if it's fixed in newer version but what a did as workaround is just to redirect after saving to the same page
binaryfire
binaryfire15mo ago
Same problem here. Have you opened a GitHub issue for this? That’s the best way to report bugs
MiloudiMohamed
MiloudiMohamedOP15mo ago
No I didn't, feel free to do so
toeknee
toeknee15mo ago
Is there anything on the console when you inspect it?
MiloudiMohamed
MiloudiMohamedOP15mo ago
No, no errors
Want results from more Discord servers?
Add your server