mask+ real time validation
If I have real time validation with:
public function updated($propertyName)
{
$this->validateOnly($propertyName);
}
And an input mask for a TextInput, e.g.
Forms\Components\TextInput::make('weight')-
->mask('9')
->numeric()
->integer()
->required()
->minValue(1) ->maxValue(6), Then the validation runs on page load and of course is invalid because of 'required' validator and the unfilled TextInput. If I have no mask, then validators run only if user starts to fill the input. (And the integer validator is not enough for me, because it allows dot and comma somehow...)
->minValue(1) ->maxValue(6), Then the validation runs on page load and of course is invalid because of 'required' validator and the unfilled TextInput. If I have no mask, then validators run only if user starts to fill the input. (And the integer validator is not enough for me, because it allows dot and comma somehow...)
3 Replies
Bump
what is the issue?
That I get an error on the page load which I dont want to, until someting is typed in the field.