Skip to content

Fix date pickers not showing date when initially rendered in a hidden container#3629

Merged
T4rk1n merged 4 commits into
plotly:devfrom
AnnMarieW:fix-datepicker-input-size
Feb 26, 2026
Merged

Fix date pickers not showing date when initially rendered in a hidden container#3629
T4rk1n merged 4 commits into
plotly:devfrom
AnnMarieW:fix-datepicker-input-size

Conversation

@AnnMarieW

Copy link
Copy Markdown
Collaborator

closes #3625

This PR fixes an issue in DatePickerSingle and DatePickerRange where the input width was incorrect when the component was initially rendered inside a hidden container, for example dbc.Tabs or if the the style is display: none.

This PR uses the existing ResizeDetector to update the AutosizeInput width when the container becomes visible

@T4rk1n T4rk1n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 Nice fix!

@T4rk1n T4rk1n merged commit 3d63e35 into plotly:dev Feb 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants