ant-design/ant-design

AutoComplete does not fire onDropdownVisibleChange after filtering.

Aperta

#30.624 aperta il 21 mag 2021

 (8 commenti) (2 reazioni) (1 assegnatario)TypeScript (54.612 fork)batch import
Inactivehelp wanted🐛 Bug

Metriche repository

Star
 (98.031 stelle)
Metriche merge PR
 (Merge medio 3g 4h) (248 PR mergiate in 30 g)

Descrizione

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Type into the input until the options all go away.

What is expected?

The onDropdownVisibleChange logs to console each time it is called. It should log false (closed) when the options go away.

What is actually happening?

The onDropdownVisibleChange handler does not get called.

Environment Info
antd 4.14.1
React 17.0.1
System Manjaro Linux 21.0.4
Browser Chrome 90.0.4430.212

Guida contributor