F
Filament11mo ago
senk715

TextInput->numeric() | Livewire corrupt data

Hello, I am patching a Filament v2 enterprise project (so there is no option of upgrade-ing), and I have encountered a strange issue, where in a
Forms\Components\TextInput::make('primary_unit_value')
->label('Elsődleges mértékegység')
->rules(['required'])
->numeric()
Forms\Components\TextInput::make('primary_unit_value')
->label('Elsődleges mértékegység')
->rules(['required'])
->numeric()
field if you write more then 18 digits then livewire returns with a "Livewire encountered corrupt data when trying to hydrate". I would assume this is because it switches to exponentials automatically and that cannot be validate towards numbers. I thought providing a maxValue / maxLength would solve this issue, but the textfield still allows for bigger lengths and values to be written in the field. Is there any solution to this?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server