Skip to content

Conversation

@martijnrusschen
Copy link
Member

The ResizeObserver watching the month container could trigger an infinite loop: updating the time list height caused a re-render, which triggered another resize event, and so on.

This fix only updates the height state when the calculated height actually differs from the current state, breaking the infinite loop.

Fixes #5551

@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.23%. Comparing base (ff23ce8) to head (8f630a7).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6104   +/-   ##
=======================================
  Coverage   99.23%   99.23%           
=======================================
  Files          30       30           
  Lines        3647     3649    +2     
  Branches     1574     1558   -16     
=======================================
+ Hits         3619     3621    +2     
  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.

The ResizeObserver watching the month container could trigger an
infinite loop: updating the time list height caused a re-render,
which triggered another resize event, and so on.

This fix only updates the height state when the calculated height
actually differs from the current state, breaking the infinite loop.

Added a test to verify the resize callback can be called multiple
times without causing height changes.

Fixes #5551

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

Co-Authored-By: Claude <[email protected]>
@martijnrusschen martijnrusschen force-pushed the fix/issue-5551-infinite-time-picker-height branch from f2b2df8 to ad73e3f Compare December 4, 2025 14:38
@martijnrusschen martijnrusschen merged commit 8279f2f into main Dec 4, 2025
4 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.

In 8.3.0, the popper div height constantly changes when the time picker is enabled

2 participants