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

Popconfirm与Table组合使用时,会有内存泄漏的情况 #727

Closed
rojer95 opened this issue Mar 26, 2022 · 2 comments
Closed

Popconfirm与Table组合使用时,会有内存泄漏的情况 #727

rojer95 opened this issue Mar 26, 2022 · 2 comments
Labels
bug Something isn't working Waiting for NPM Release Fixed and waiting for npm publish

Comments

@rojer95
Copy link
Contributor

rojer95 commented Mar 26, 2022

Which Component 出现bug的组件

  • Popconfirm
  • Table

semi-ui version

"@douyinfe/semi-ui": "^2.6.0",

Expected result 期望的结果是什么

不出现警告

Actual result 实际的结果是什么

image

Steps to reproduce 复现步骤

点击删除,就会有警告

Reproducible code 复现代码

import { Popconfirm, Table, Typography } from "@douyinfe/semi-ui";

export default () => {
  const [data, setData] = useState([{ a: 1 }]);
  return (
      <Table
        dataSource={data}
        columns={[
          {
            dataIndex: "a",
            title: "a",
          },
          {
            render: () => {
              return (
                <Popconfirm
                  onConfirm={() => {
                    setData([]);
                  }}
                >
                  <Typography.Text link>删除</Typography.Text>
                </Popconfirm>
              );
            },
          },
        ]}
      />
  );
};


@rojer95 rojer95 added the bug Something isn't working label Mar 26, 2022
@shijiatongxue
Copy link
Collaborator

可以复现这个问题

@shijiatongxue
Copy link
Collaborator

v2.7.1 fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting for NPM Release Fixed and waiting for npm publish
Projects
None yet
Development

No branches or pull requests

2 participants