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
Óscar14mo ago
Any solution? same problem here
MiloudiMohamed
MiloudiMohamed14mo 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
binaryfire14mo ago
Same problem here. Have you opened a GitHub issue for this? That’s the best way to report bugs
MiloudiMohamed
MiloudiMohamed14mo ago
No I didn't, feel free to do so
toeknee
toeknee14mo ago
Is there anything on the console when you inspect it?
MiloudiMohamed
MiloudiMohamed14mo ago
No, no errors
Want results from more Discord servers?
Add your server