Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Card 的title加Cascader 会出现样式错误 #5952

Closed
MrSeaWave opened this issue Apr 28, 2017 · 1 comment
Closed

Card 的title加Cascader 会出现样式错误 #5952

MrSeaWave opened this issue Apr 28, 2017 · 1 comment
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@MrSeaWave
Copy link

MrSeaWave commented Apr 28, 2017

Version

2.9.3

Environment

IMAc

Reproduction link

https://ant.design/components/cascader-cn/

Steps to reproduce

在Card中的title加cascader

What is expected?

cascader不会溢出

What is actually happening?

cascader 加上去出错

const { Card,Cascader } = antd;
 const options = [{
      value: 'zhejiang',
      label: 'Zhejiang',
      children: [{
        value: 'hangzhou',
        label: 'Hangzhou',
        children: [{
          value: 'xihu',
          label: 'West Lake',
        }],
      }],
    }, {
      value: 'jiangsu',
      label: 'Jiangsu',
      children: [{
        value: 'nanjing',
        label: 'Nanjing',
        children: [{
          value: 'zhonghuamen',
          label: 'Zhong Hua Men',
        }],
      }],
    }];
    function onChange(value) {
      console.log(value);
    }
 const title=<Cascader options={options} 
                       onChange={onChange} 
                       placeholder="Please select" />
    
ReactDOM.render(
 <Card title={title}>测试</Card>
, mountNode);

image

image

@ddcat1115 ddcat1115 self-assigned this Apr 28, 2017
@ddcat1115 ddcat1115 added the 🐛 Bug Ant Design Team had proved that this is a bug. label Apr 28, 2017
@afc163 afc163 closed this as completed in 6caa920 Apr 30, 2017
@lock
Copy link

lock bot commented May 1, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked and limited conversation to collaborators May 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants