Skip to content

Upload click area will not hide when set listType="picture-card" and showUploadList=false #36183

@appleshell

Description

@appleshell

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Upload component sets listType="picture-card" and showUploadList=false, then upload 2 pictures. this problem occured at version 4.18.6 and after this version.

What is expected?

After uploaded 2 pictures,the upload trigger area will be hiden.

What is actually happening?

The button is hiden, but there is still an area that can be clicked to trigger upload action.

Environment Info
antd 4.21.3
React 18.2.0
System windows
Browser chrome 102.0.5005.115

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions