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

[Select] Wrong number of tags after selection under ellipsisTrigger #1560

Closed
1 task done
YannLynn opened this issue Apr 19, 2023 · 1 comment
Closed
1 task done
Assignees
Labels
bug Something isn't working

Comments

@YannLynn
Copy link
Collaborator

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

Select

Semi Version

latest

Current Behavior

点击选中西瓜视频, +n tag 数量从 1 变为 3,hover 显示的 tag 也是错误的。

Expected Behavior

点击选中西瓜视频, +n tag 数量从 1 变为 2

Steps To Reproduce

20230419152815_rec_

ReproducibleCode

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

() => (
    <>
       <Select
            multiple
            maxTagCount={2}
            ellipsisTrigger
            showRestTagsPopover={true}
            restTagsPopoverProps={{ position: 'top' }}
            style={{ width: '200px' }}
            defaultValue={['abc', 'ulikecam', 'jianying']}
        >
            <Select.Option value="abc">抖音</Select.Option>
            <Select.Option value="ulikecam">轻颜相机</Select.Option>
            <Select.Option value="jianying">剪映</Select.Option>
            <Select.Option value="xigua">西瓜视频</Select.Option>
        </Select>
    </>
);

Environment

- OS:
- browser:

Anything else?

No response

@YannLynn
Copy link
Collaborator Author

fixed in 2.45.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant