Skip to content

Commit

Permalink
fix(datepicker): show zero on page (#2582)
Browse files Browse the repository at this point in the history
* fix(datepicker): show zero on page

* fix: save

* fix: save !!

* fix: save

* fix: save
  • Loading branch information
Alex-huxiyang authored Sep 12, 2024
1 parent 8a3073d commit 99772f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/packages/datepicker/datepicker.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export const DatePicker: FunctionComponent<
catchMove
{...(rest as any)}
>
{pickerOptions.length && (
{pickerOptions.length > 0 && (
<Picker
{...pickerProps}
title={title}
Expand Down
2 changes: 1 addition & 1 deletion src/packages/datepicker/datepicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export const DatePicker: FunctionComponent<

return (
<div className={`nut-datepicker ${className}`} style={style} {...rest}>
{pickerOptions.length && (
{pickerOptions.length > 0 && (
<Picker
{...pickerProps}
title={title}
Expand Down

0 comments on commit 99772f7

Please sign in to comment.