Skip to content

Conversation

@martijnrusschen
Copy link
Member

Summary

  • Added translate="no" attribute to the CalendarContainer root element
  • Prevents browser auto-translation features from interfering with the calendar

Problem

When Safari's auto-translate feature is enabled, it attempts to translate the calendar's date/month names. This breaks React's virtual DOM reconciliation and causes:

  • "NotFoundError: The object can not be found here" console errors
  • Blank page when navigating between months
  • Layout issues with overlapping text and broken grid

Solution

The translate="no" attribute is a standard HTML attribute that tells browsers not to translate the content within the element. This allows the library's own localization (via date-fns locales) to work correctly while preventing browser translation interference.

Test Plan

  • Added test to verify translate="no" attribute is present
  • All 1449 tests pass
  • Linting passes

Browser Support

The translate attribute is supported in all modern browsers including Safari, Chrome, Firefox, and Edge.

Fixes #5824

🤖 Generated with Claude Code

Add translate="no" attribute to the CalendarContainer root element to
prevent browser auto-translation features from interfering with the
calendar's date rendering and navigation.

When Safari's auto-translate is enabled, it attempts to translate the
calendar's date/month names, which breaks React's virtual DOM reconciliation
and causes "NotFoundError: The object can not be found here" errors and
blank pages when navigating months.

The translate="no" attribute is a standard HTML attribute that tells
browsers not to translate the content within the element. This allows
the library's own localization (via date-fns locales) to work correctly.

Fixes #5824

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.26%. Comparing base (be38873) to head (bd32db2).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6168   +/-   ##
=======================================
  Coverage   99.26%   99.26%           
=======================================
  Files          30       30           
  Lines        3792     3792           
  Branches     1631     1631           
=======================================
  Hits         3764     3764           
  Misses         27       27           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@martijnrusschen martijnrusschen merged commit f0057e2 into main Dec 18, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calendar breaks in Safari when auto-translate is enabled and throws an error

2 participants