Skip to content

Commit

Permalink
fix(picker/datepicker): popup minHeight is too high and causes blank …
Browse files Browse the repository at this point in the history
…space
  • Loading branch information
irisSong committed Jan 8, 2025
1 parent fc8754c commit e4651d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/packages/picker/picker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
.nut-picker {
background-color: $color-background-overlay;
width: 100%;
&-popup {
min-height: calc($popup-title-height + $picker-list-height) !important;
}

&-control {
display: flex;
Expand Down
1 change: 1 addition & 0 deletions src/packages/picker/picker.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ const InternalPicker: ForwardRefRenderFunction<
afterClose={() => {
afterClose?.(setSelectedOptions(), innerValue, pickerRef)
}}
className={`${classPrefix}-popup`}
>
<View className={classes} style={style} {...rest} catchMove>
{renderTitleBar()}
Expand Down
1 change: 1 addition & 0 deletions src/packages/picker/picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ const InternalPicker: ForwardRefRenderFunction<
afterClose={() => {
afterClose?.(setSelectedOptions(), innerValue, pickerRef)
}}
className={`${classPrefix}-popup`}
>
<div className={classes} style={style} {...rest}>
{renderTitleBar()}
Expand Down

0 comments on commit e4651d6

Please sign in to comment.