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?
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?
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)
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
toReactDOM.createPortal
which is available in 16. You can check for whether it exists and branch in the code.