[lexical-website] Bug Fix: Drop Vercel Analytics inject and unwrap chat input from flex parent#8509
Merged
Conversation
…at input from flex parent
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
6 tasks
etrepum
approved these changes
May 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Two of the console errors reported in #8103 originate from this repo and can be fixed here. The third (
staticdocs.thefacebook.com/pingfailing to resolve, twice per navigation) is emitted bydocusaurus-plugin-internaldocs-fb'sinternaldocsSetRedirectand has no opt-out in the preset config, so it's out of scope for this PR.Lexical's flex + contentEditable warning
examples/website-chat/src/ChatInput.tsxhad<ContentEditable>as a direct child of aflexrow alongside<EmojiPlugin />and the send button.LexicalEditor.setRootElement's dev-only check warns whenever the editor root's immediate parent computes todisplay: flexorinline-flex. Wrap the editable in a non-flex<div className="min-w-0 flex-1">so the immediate parent isdisplay: block.flex-1 min-w-0on the wrapper preserves the original flex sizing for the input row.Vercel Analytics 404
packages/lexical-website/src/pages/index.tsxcallsinject()from@vercel/analyticson every page load, but/_vercel/insights/script.jsreturns 404 on the deployed site (Web Analytics isn't enabled on the Vercel project). This PR drops the import, the call, and the dependency, which is the simplest way to quiet the error without Vercel project access.If the intent is actually to keep Vercel Analytics and enable it on the Vercel side, happy to revert this part — let me know.
Out of scope
staticdocs.thefacebook.com/pingfires fromdocusaurus-plugin-internaldocs-fb/module.js(NETWORK_TEST_URLconstant, no plugin option to disable). Removing it would mean either patching the Meta-internal plugin or swapping presets, both larger than this PR.Closes #8103 partially.
Test plan
pnpm --filter @lexical/website docusaurus start— homepage loads, console no longer shows the Vercel Analytics 404 or the[Vercel Web Analytics] Failed to load scriptfollow-up.display: flexwarning no longer fires.staticdocs.thefacebook.com/ping×2 still present as expected (Meta-internal plugin, see Out of scope).