Skip to content

Commit b77e574

Browse files
committed
Update spread
Signed-off-by: gpbl <[email protected]>
1 parent d7a57b7 commit b77e574

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/DayPicker.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ import { isDateRange } from "./utils/typeguards.js";
4040
* @see https://daypicker.dev
4141
*/
4242
export function DayPicker(initialProps: DayPickerProps) {
43-
const props = { ...initialProps };
43+
let props = initialProps;
4444

4545
if (props.timeZone) {
46+
props = {
47+
...initialProps
48+
};
4649
if (props.today) {
4750
props.today = new TZDate(props.today, props.timeZone);
4851
}

0 commit comments

Comments
 (0)