ant-design/ant-design

Resizing Autocomplete with "width 100%" does not resize the dropdown

Open

#28,159 建立於 2020年12月2日

在 GitHub 查看
 (2 留言) (2 反應) (0 負責人)TypeScript (98,031 star) (54,612 fork)batch import
Inactivehelp wanted

描述

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

Reproduction link

Edit on CodeSandbox

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

貢獻者指南