ant-design: option's width is wrong in version 2.13.1 under the react version 16.0.0-rc.3

Version

2.13.1

Environment

react version: 16.0.0-rc.3

Reproduction link

https://codepen.io/dingchaoyan1983/pen/bodwrQ

Steps to reproduce

render a select

What is expected?

5a52f4ab-1a4b-44eb-bda8-4b00564f0f07

The option width of Select in antd’s version 2.13.1 is wrong in react version 16.0.0-rc.3

What is actually happening?

5a52f4ab-1a4b-44eb-bda8-4b00564f0f07

The option width of Select in antd’s version 2.13.1 is wrong in react version 16.0.0-rc.3

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 5
  • Comments: 16 (6 by maintainers)

Most upvoted comments

I’m looking into it.

rc-select@6.9.4

any quick patch for this?

@ElliotReeve Ensure npm list rc-select is 6.9.5, otherwise, reinstall node_modules.

It is not a bug but an intentional breaking change. Please change your usage of renderSubtreeIntoContainer to ReactDOM.createPortal which is available in 16. You can check for whether it exists and branch in the code.