stripCharacters() method not found on TextInput

hello based on the documentaion we can use :
use Filament\Forms\Components\TextInput;
use Filament\Support\RawJs;

TextInput::make('amount')
->mask(RawJs::make('$money($input)'))
->stripCharacters(',')
->numeric()
use Filament\Forms\Components\TextInput;
use Filament\Support\RawJs;

TextInput::make('amount')
->mask(RawJs::make('$money($input)'))
->stripCharacters(',')
->numeric()
but this code throws this error:
BadMethodCallException
PHP 8.2.4
Laravel 10.30.1
Method Filament\Forms\Components\TextInput::stripCharacters does not exist.
BadMethodCallException
PHP 8.2.4
Laravel 10.30.1
Method Filament\Forms\Components\TextInput::stripCharacters does not exist.
5 Replies
Raffi
Raffi12mo ago
Did you find the solution for this?
Luiz
Luiz12mo ago
same problem here. did you find the solution?
Alex Six
Alex Six12mo ago
What version of Filament are you using? I believe that this was introduced in v3 (if I'm remembering correctly)
Tieme
Tieme12mo ago
it was introduces in v3.1.12 If you are running a older version please composer update
Want results from more Discord servers?
Add your server