Skip to content

Conversation

@martijnrusschen
Copy link
Member

When using a customInput with multiple elements, the calendar positions relative to the wrapper div by default. The new popperTargetRef prop allows users to specify a custom element for the calendar to position relative to.

This uses Floating UI's setPositionReference to set a separate position reference element while keeping the wrapper as the DOM container.

Fixes #3897

martijnrusschen and others added 2 commits December 4, 2025 14:35
When using a customInput with multiple elements, the calendar positions
relative to the wrapper div by default. The new popperTargetRef prop
allows users to specify a custom element for the calendar to position
relative to.

This uses Floating UI's setPositionReference to set a separate position
reference element while keeping the wrapper as the DOM container.

Fixes #3897

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

Co-Authored-By: Claude <noreply@anthropic.com>
@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 (0e13929) to head (c7076d3).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6102      +/-   ##
==========================================
+ Coverage   99.14%   99.23%   +0.08%     
==========================================
  Files          30       30              
  Lines        3644     3647       +3     
  Branches     1556     1557       +1     
==========================================
+ Hits         3613     3619       +6     
+ Misses         29       27       -2     
+ Partials        2        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 ff23ce8 into main Dec 4, 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.

Datepicker popover position with CustomInput prop is always at the center of the CustomInput container, regardless of which element ref is attached

2 participants