Closed digitall-it closed 1 year ago
In this case, the documentation example is just bad. We actually have a step()
method that you can use:
TextInput::make('points')
->numeric()
->step(10)
I will update the docs.
And it defaults to any
for numeric inputs. Which is why you were seeing that attribute.
Package
filament/forms
Package Version
v2.16.50
Laravel Version
v9.40.1
Livewire Version
v2.10.7
PHP Version
PHP 8.1.12
Problem description
While following
https://filamentphp.com/docs/2.x/forms/fields#custom-attributes
to add additional HTML attributes to the input itself, the attribute doesn't seem to be passed.
Expected behavior
Input step attribute should be "10" and instead is "any".
Steps to reproduce
cp .env.dist .env
sail up -d
sail artisan migrate:fresh --seed
test@test.test
/12341234
Reproduction repository
https://github.com/digitall-it/extraInputAttributes-repro-1.git
Relevant log output