We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a3073d commit 99772f7Copy full SHA for 99772f7
src/packages/datepicker/datepicker.taro.tsx
@@ -403,7 +403,7 @@ export const DatePicker: FunctionComponent<
403
catchMove
404
{...(rest as any)}
405
>
406
- {pickerOptions.length && (
+ {pickerOptions.length > 0 && (
407
<Picker
408
{...pickerProps}
409
title={title}
src/packages/datepicker/datepicker.tsx
@@ -398,7 +398,7 @@ export const DatePicker: FunctionComponent<
398
399
return (
400
<div className={`nut-datepicker ${className}`} style={style} {...rest}>
401
402
0 commit comments