From 54261cc7ba5c3cae20c9c85f1552e06f52c9e259 Mon Sep 17 00:00:00 2001 From: Leon S <6985556+sxwei123@users.noreply.github.com> Date: Wed, 2 Oct 2024 11:55:43 +0800 Subject: [PATCH] fix(DatePicker): set type of buttons in CalendarHeader to button instead of default submit --- src/DatePicker/CalendarHeader.tsx | 3 +++ src/DatePicker/MonthView.tsx | 1 + src/DatePicker/YearView.tsx | 1 + tests/DatePicker/__snapshots__/CalendarHeader.test.tsx.snap | 3 +++ 4 files changed, 8 insertions(+) diff --git a/src/DatePicker/CalendarHeader.tsx b/src/DatePicker/CalendarHeader.tsx index 8daf1c6c..15ae2b56 100644 --- a/src/DatePicker/CalendarHeader.tsx +++ b/src/DatePicker/CalendarHeader.tsx @@ -148,6 +148,7 @@ const CalendarHeader = React.forwardRef( } const previousButton = (