Reproduction link

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 |