发布

  • fix(onboarding): prevent Google Translate removeChild crash on mobile get-started

    frostbyte_neo 发布于 2026-07-21 18:34:27 +00:00

    The mobile WelcomeStep typewriter (TypingText) rewrites a text node every
    30-80ms. When the browser auto-translates the page, Google Translate rewrites
    the DOM (wrapping text nodes in elements), and React's next commit then
    throws "NotFoundError: Failed to execute 'removeChild' on 'Node'". The
    continuous animation makes the crash near-certain once translation is active.

    Mark the animated demo prompt translate="no" so the browser excludes it from
    translation (Google's recommended handling for JS-updated dynamic content).
    Translate no longer mutates that subtree, so React never hits the crash. The
    animation is unchanged and the rest of the page still translates.

    OPIK-7428

    Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
    (cherry picked from commit 40ee7c3cc18424b0493da0786a678f35e8162370)

    下载附件