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
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.
Do you have sample code of it sir?
I can't I am afraid as I haven't done it. But the principle should stand, just copy what has already been coded.
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
Correct you can't use js copy functions without SSL in modern browsers but it will work even if its an autosigned one
Not an issue with herd. You just need to run
herd secure
for your projectThanks for the tips sir