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
DrByte
DrByte12mo ago
Since a placeholder is just a pseudo "default" for when there's no default, perhaps just using default('0') would suffice?
GHOST-117
GHOST-117OP12mo ago
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
DrByte
DrByte12mo ago
agreed. it's not ideal, but a single digit '0' may be a suitable interim patch until you find a complete solution
Want results from more Discord servers?
Add your server