We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c00d4e commit 2d58f3cCopy full SHA for 2d58f3c
components/common/DatePicker/DatePicker.jsx
@@ -126,7 +126,8 @@ function DatePicker({
126
127
const getCoordinates = () => {
128
if (ref.current) {
129
- const { left, top, height } = ref.current.getClientRects()[0];
+ const { left, top, height } =
130
+ ref.current.getClientRects()[0] ?? ref.current.getBoundingClientRect();
131
const offsetFromSelectorDisplay = 2;
132
return {
133
left,
0 commit comments