How to make password text input copyable?

I have this package installed but not working.. does anyone tried this? use Rawilk\FilamentPasswordInput\Password; Password::make('password') ->copyable() ->copyMessage('Password copied!') ->copyMessageDuration(2000) ->default(fn () => PasswordGenerator::generate(12)) ->revealable() ->required(),
7 Replies
toeknee
toeknee4mo ago
I don't think copyable was supported because the suffix action is revealable you see. You could put your affix action on it and then replicate the copyable function.
Jerome V
Jerome VOP4mo ago
Do you have sample code of it sir?
toeknee
toeknee4mo ago
I can't I am afraid as I haven't done it. But the principle should stand, just copy what has already been coded.
Jerome V
Jerome VOP4mo ago
I determined the error... I'm using herd that's why it don't work but when i run the project using php artisan serve it was working... so it means if it's not secured or localhost it won't work
Martin Oscar
Martin Oscar4mo ago
Correct you can't use js copy functions without SSL in modern browsers but it will work even if its an autosigned one
Dennis Koch
Dennis Koch4mo ago
Not an issue with herd. You just need to run herd secure for your project
Jerome V
Jerome VOP4mo ago
Thanks for the tips sir

Did you find this page helpful?