F
Filament2mo ago
Eskie

Copyable Behavior Changed

I have this code
TextColumn::make('code')
->copyable()
->formatStateUsing(fn (string $state): string => Str::mask($state, '*', 10)),
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)
Jump to solution
2 Replies
Eskie
EskieOP2mo ago
up
Solution
LeandroFerreira
LeandroFerreira2mo ago
->copyableState(fn (string $state): string => $state)

Did you find this page helpful?