senk715
senk715
FFilament
Created by senk715 on 1/28/2024 in #❓┊help
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?
2 replies