Masking and using palceholder at same time
TextInput::make('amount')
->label('Amount being Charged')
->required()
->placeholder('0.00')
->numeric()
->minValue(1)
->mask(fn (Mask $mask) => $mask->money(prefix: '$', thousandsSeparator: ','))
])
i want to use placeholder and masking at the same time
but when i am using masking the placeholder doesn't work
3 Replies
Since a placeholder is just a pseudo "default" for when there's no default, perhaps just using
default('0')
would suffice?but when iam using default i have to clear the whole field to enter any value
it not accepting any at first i have to clear it first
agreed. it's not ideal, but a single digit '0' may be a suitable interim patch until you find a complete solution