Skip to content

fix: prevent hydration mismatch caused by browser extensions#1381

Open
Kokila-chandrakar wants to merge 2 commits into
magic-peach:mainfrom
Kokila-chandrakar:fix-hydration-warning
Open

fix: prevent hydration mismatch caused by browser extensions#1381
Kokila-chandrakar wants to merge 2 commits into
magic-peach:mainfrom
Kokila-chandrakar:fix-hydration-warning

Conversation

@Kokila-chandrakar
Copy link
Copy Markdown

What Changed

Added suppressHydrationWarning to all hidden file input elements used in the upload flow.

Why

Browser extensions such as LastPass inject attributes like fdprocessedid into file input elements on the client side. Since these attributes are not present in the server-rendered HTML, React throws a hydration mismatch warning during page load.

Fix

Applied suppressHydrationWarning to the affected input type="file" elements so React safely ignores extension-injected attribute differences during hydration.

Result

  • No hydration mismatch warnings in the console
  • Upload flow remains unchanged
  • Works correctly with form-filling browser extensions enabled

close #1373

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

@Kokila-chandrakar is attempting to deploy a commit to the magic-peach1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added level:beginner Beginner level - 20 pts type:bug Bug fix labels May 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

👋 Thanks for your PR, @Kokila-chandrakar!

Welcome to Reframe — a browser-based video editor built for everyone 🎬

What happens next

  1. 🤖 Automated checks — build & TypeScript typecheck will run automatically
  2. Vercel preview — a preview deployment will be created (requires maintainer authorization for fork PRs)
  3. 👀 Code review — a maintainer will review your changes
  4. 🚀 Merge — once approved, your PR will be merged!

Quick checklist

  • PR title follows Conventional Commits (e.g. feat: add dark mode)
  • Linked the issue this PR closes (e.g. Closes #123)
  • Tested the changes locally (bun run dev)
  • Build passes (bun run build)

Useful links

Happy coding! 🎉

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

✅ PR Format Check Passed — @Kokila-chandrakar

Basic format checks passed. A maintainer will review your code changes.

This does not mean the PR is approved — it just means the format is correct.

@Kokila-chandrakar
Copy link
Copy Markdown
Author

Hi @magic-peach , could you please review and approve the pending workflows for this PR? The remaining checks are waiting for maintainer approval. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:beginner Beginner level - 20 pts type:bug Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] disable SSR on FileUpload to prevent hydration mismatch

1 participant