Skip to content

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

Open
AnnMarieW wants to merge 4 commits intoplotly:devfrom
AnnMarieW:fix-datepicker-input-size
Open

Fix date pickers not showing date when initially rendered in a hidden container#3629
AnnMarieW wants to merge 4 commits intoplotly:devfrom
AnnMarieW:fix-datepicker-input-size

Conversation

@AnnMarieW
Copy link
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

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.

[BUG] Dash 4.0.0 dcc.DatePickerSingle not showing date in unfocused dbc.Tabs

1 participant