From 7db23bc79f0f78144ec37f7c470e1ef8cf1ef550 Mon Sep 17 00:00:00 2001 From: Sergey Rozhkov Date: Fri, 7 Mar 2025 16:39:56 +0700 Subject: [PATCH 1/3] fix: Pixel 8a and 9 series sometimes do not render the calender #442 --- src/Date/AutoSizer.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Date/AutoSizer.tsx b/src/Date/AutoSizer.tsx index 58ce1dab..462e9564 100644 --- a/src/Date/AutoSizer.tsx +++ b/src/Date/AutoSizer.tsx @@ -26,12 +26,14 @@ export default function AutoSizer({ [layout, setLayout] ) + const isLayoutInizialized = layout && layout.height > 0 && layout.width > 0 + return ( - {layout ? children(layout) : null} + {isLayoutInizialized ? children(layout) : null} ) } From 66af353ec7ec5a63bf6e6169f00c50e464afc463 Mon Sep 17 00:00:00 2001 From: Sergey Rozhkov Date: Fri, 7 Mar 2025 17:53:29 +0700 Subject: [PATCH 2/3] fix: naming --- src/Date/AutoSizer.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Date/AutoSizer.tsx b/src/Date/AutoSizer.tsx index 462e9564..b2176eae 100644 --- a/src/Date/AutoSizer.tsx +++ b/src/Date/AutoSizer.tsx @@ -26,14 +26,14 @@ export default function AutoSizer({ [layout, setLayout] ) - const isLayoutInizialized = layout && layout.height > 0 && layout.width > 0 + const isLayoutInitialized = layout && layout.height > 0 && layout.width > 0 return ( - {isLayoutInizialized ? children(layout) : null} + {isLayoutInitialized ? children(layout) : null} ) } From 0e855692eaf1f03f509744a9a0710edca1a5e774 Mon Sep 17 00:00:00 2001 From: rozhkovs Date: Sun, 9 Mar 2025 15:50:40 +0700 Subject: [PATCH 3/3] fix: eslint --- src/Date/AutoSizer.tsx | 6 +++++- src/Date/DatePickerModalContentHeader.tsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Date/AutoSizer.tsx b/src/Date/AutoSizer.tsx index b2176eae..d88c7efd 100644 --- a/src/Date/AutoSizer.tsx +++ b/src/Date/AutoSizer.tsx @@ -31,7 +31,11 @@ export default function AutoSizer({ return ( {isLayoutInitialized ? children(layout) : null} diff --git a/src/Date/DatePickerModalContentHeader.tsx b/src/Date/DatePickerModalContentHeader.tsx index a5fd6ff7..1d00c145 100644 --- a/src/Date/DatePickerModalContentHeader.tsx +++ b/src/Date/DatePickerModalContentHeader.tsx @@ -216,7 +216,7 @@ export function HeaderContentRange({ const formatter = useMemo(() => { return new Intl.DateTimeFormat(locale, { month: 'short', - day: 'numeric' + day: 'numeric', }) }, [locale])