TextInput min/maxValues not being set

When trying to use the min and max values on a TextInput, it appears they are never set
TextInput::make('padding_top')
->label('Padding Top')
->numeric()
->minValue(-48)
->maxValue(48)
->step(1)
->default(0)
->suffix(fn ($state) => $state ? "$state" : "0")
->live()
TextInput::make('padding_top')
->label('Padding Top')
->numeric()
->minValue(-48)
->maxValue(48)
->step(1)
->default(0)
->suffix(fn ($state) => $state ? "$state" : "0")
->live()
I was trying to find a work around to Slider not working but it also appears taht the TextInput min and max values do not work either. Am I do something wrong? This is basically coped from the docs: https://filamentphp.com/docs/4.x/forms/text-input#size-validation The user is basically able to enter any number they want for example I moved the number all the way down to -128
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?