feat: reset password visibility and history state on cipher selection change

This commit is contained in:
shuaiplus
2026-05-10 19:57:32 +08:00
parent 1d23b3fe5e
commit e0d81f2733
3 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -554,7 +554,7 @@ export default function SendsPage(props: SendsPageProps) {
<button type="button" className="btn btn-secondary small" onClick={() => copyAccessUrl(selectedSend)}>
<Copy size={14} className="btn-icon" /> {t('txt_copy_link')}
</button>
<button type="button" className="btn btn-secondary small" onClick={() => { setDraft(draftFromSend(selectedSend)); setIsCreating(false); setIsEditing(true); }}>
<button type="button" className="btn btn-secondary small" onClick={() => { setDraft(draftFromSend(selectedSend)); setIsCreating(false); setIsEditing(true); setShowPassword(false); }}>
<Pencil size={14} className="btn-icon" /> {t('txt_edit')}
</button>
</div>