Calendar Date/Time Picker stutters on mobile devices #25538
Labels
Needs Dev
Ready for, and needs developer efforts
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Depending on the device and the month, when opening the calendar picker, the calendar stutters as the max-width on
.components-popover__content
is rapidly added and removed.Expected Behavior
The calendar picker wrapper should be centered horizontally on the screen and should not stutter. The calendar elements should also be centered within the calendar wrapper.
Here are screencasts of this issue
iPhone X simulator: https://www.loom.com/share/9fbc61c37c33491dbd89027227e14e65
Android: https://youtu.be/i_727BrPCCY
Versions
Smartphones
Observations about this issue
.components-popover__content
seems to have conflicting rules. Withmin-width: 260px
and yet a dynamically changing inline style that is less than the min-width. One example I observed wasmax-width: 253px
. Themax-width
should not be less than themin-width
max-width
appears to be handled with JS and seems to be at least partially based on the width of the calendar wrapper, which changes depending on month length.min-width
on.components-popover__content
prevents the stuttering for September, but then the calendar placement is even worse on the screen..components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content
when themin-width
is increased helps with placement, but is a bandaid fix.The text was updated successfully, but these errors were encountered: