You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using html2canvas to capture a screenshot of a form built with React Hook Form, some input fields — especially custom components like react-select dropdowns and date pickers — are partially rendered or completely cut off in the output image.
This issue seems to affect third-party components that render dropdowns or floating elements via portals or overlays.
Steps to Reproduce
Create a React form using react-hook-form
Add inputs using:
react-select for dropdowns
A date field using react-datepicker or Material UI DatePicker
Wrap the form in a ref and pass it to html2canvas
Click a button to trigger a screenshot
Observe that:
Some form controls are missing entirely
Dropdowns or calendars are cut off or not rendered correctly
Expected Behavior
All visible fields and custom inputs (including dropdowns and date pickers) should appear correctly in the canvas/screenshot.
Actual Behavior
Some custom components (like react-select) are missing or rendered incorrectly
Date picker popups or dropdowns are either invisible or cut off
Possibly related to components being rendered in portals or absolute positioning[