Skip to content

Commit

Permalink
fix(date-picker): force set viewDate
Browse files Browse the repository at this point in the history
  • Loading branch information
gavin-hao authored and jack0pan committed May 10, 2022
1 parent 883944b commit a00b766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/static-date-picker/StaticDatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const StaticDatePicker: React.FC<StaticDatePickerProps> = ({
{...restProps}
pickerValue={viewDate}
onSelect={(date) => { onSelect?.(date); }}
onChange={(date) => { setViewDate(date); }}
onChange={(date) => { setViewDate(date, true); }}
locale={locale}
prefixCls={prefixCls}
onPanelChange={(changedValue, changedMode: PickerMode) => {
Expand Down

1 comment on commit a00b766

@vercel
Copy link

@vercel vercel bot commented on a00b766 May 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

gio-design – ./

gio-design.vercel.app
gio-design-growingio.vercel.app
gio-design-git-master-growingio.vercel.app

Please sign in to comment.