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

[Cascader] 关闭动画后,多选搜索时无法返回 #1199

Closed
1 task done
DaiQiangReal opened this issue Oct 19, 2022 · 2 comments
Closed
1 task done

[Cascader] 关闭动画后,多选搜索时无法返回 #1199

DaiQiangReal opened this issue Oct 19, 2022 · 2 comments
Assignees

Comments

@DaiQiangReal
Copy link
Collaborator

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

No response

Semi Version

No response

Current Behavior

No response

Expected Behavior

No response

Steps To Reproduce

20221019-140721.mp4

ReproducibleCode

import React from 'react';
import { Cascader } from '@douyinfe/semi-ui';

() => {
    const [value, setValue] = useState(['zhejiang', 'ningbo', 'haishu']);
    const onChange = (val) => { setValue(val); };
    const treeData = [
        {
            label: '浙江省',
            value: 'zhejiang',
            children: [
                {
                    label: '杭州市',
                    value: 'hangzhou',
                    children: [
                        {
                            label: '西湖区',
                            value: 'xihu',
                        },
                        {
                            label: '萧山区',
                            value: 'xiaoshan',
                        },
                        {
                            label: '临安区',
                            value: 'linan',
                        },
                    ],
                },
                {
                    label: '宁波市',
                    value: 'ningbo',
                    children: [
                        {
                            label: '海曙区',
                            value: 'haishu',
                        },
                        {
                            label: '江北区',
                            value: 'jiangbei',
                        }
                    ]
                },
            ],
        }
    ];
    return (
        <Cascader
            style={{ width: 300 }}
            treeData={treeData}
            placeholder="请选择所在地区"
            motion={false}
            value={value}
            multiple
            filterTreeNode
            onChange={e => onChange(e)}
        />
    );
};

Environment

- OS:
- browser:

Anything else?

No response

@YyumeiZhang
Copy link
Collaborator

这个问题不仅存在在多选中,单选也是

@YyumeiZhang
Copy link
Collaborator

@douyinfe/semi-ui@2.22.0-beta.1已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants