F
Filament4mo ago
Pranta

keyvalue data is being sorted automatically. How can I preserve the input sequence?

Here in modal I am just using a
Forms\Components\KeyValue::make('book')
->hiddenLabel()
->reorderable()
->keyLabel('Book')
->valueLabel('VP Number')
Forms\Components\KeyValue::make('book')
->hiddenLabel()
->reorderable()
->keyLabel('Book')
->valueLabel('VP Number')
I tried without ->reorderable() the result is same. Output
array:3 [
10 => "1233"
20 => "230"
34 => "123"
]
array:3 [
10 => "1233"
20 => "230"
34 => "123"
]
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server