ant-design/ant-design
在 GitHub 查看Resizing Autocomplete with "width 100%" does not resize the dropdown
Open
#28,159 建立於 2020年12月2日
Inactivehelp wanted
描述
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
Resize the window in the reproduction; you will see that the dropdown does not resize its width in accordance with the Autocomplete input box
What is expected?
The dropdown resizes to the same width of the input box as the window size changes
What is actually happening?
The dropdown size stays stagnant to the size it was at on first render
| Environment | Info |
|---|---|
| antd | 4.9.1 |
| React | 16.14.0 |
| System | macOS |
| Browser | macOS |