Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

fix(editor): clear alt text when the screenshot is replaced

Luis Ortiz5534741555ab
diff --git a/src/ui/shared/ScreenshotView.tsx b/src/ui/shared/ScreenshotView.tsx
index 813783e..794416d 100644
--- a/src/ui/shared/ScreenshotView.tsx
+++ b/src/ui/shared/ScreenshotView.tsx
@@ -238,6 +238,7 @@ export default function ScreenshotView({
const nextEdits: ScreenshotEdits = { ...effectiveEdits, target: null };
delete nextEdits.viewport;
+ delete nextEdits.alt;
const nextScreenshot: Screenshot = { ...baseScreenshot, blob: file, mimeType: file.type, width, height };
setScreenshotOverride(nextScreenshot);