FilamentF
Filament5mo ago
Eskie

Copyable Behavior Changed

I have this code
TextColumn::make('code')
                    ->copyable()
                    ->formatStateUsing(fn (string $state): string => Str::mask($state, '*', 10)),


and it seems that in v3.. it copies the original value but in v4, it copies that masked value
Solution
->copyableState(fn (string $state): string => $state)
Was this page helpful?