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
We encountered a problem where the datepicker position would be incorrect for a date input inside a Bootstrap modal. The datepicker would end up offscreen, far below the actual input element.
The culprit was this line of code (as well as the line above it):
This code uses strict equality (===) to compare two floating-point numbers; not pixels, but fractions of pixels. Here's how we fixed it (and how the line above it should be fixed):
Can confirm this fixed offset.top bug for me on Firefox (135 & 138), when Datepicker is placed inside Bootstrap modal.
Top ended up being set to twice the size of my screen height, some 2400px, making it invisible.
We encountered a problem where the datepicker position would be incorrect for a date input inside a Bootstrap modal. The datepicker would end up offscreen, far below the actual input element.
The culprit was this line of code (as well as the line above it):
https://github.com/jquery/jquery-ui/blob/main/ui/widgets/datepicker.js#L931
This code uses strict equality (===) to compare two floating-point numbers; not pixels, but fractions of pixels. Here's how we fixed it (and how the line above it should be fixed):
The text was updated successfully, but these errors were encountered: