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

受控的Tree组件无法展开 #6725

Open
5 tasks done
New-Lanke opened this issue Jan 26, 2025 · 0 comments · May be fixed by #6727
Open
5 tasks done

受控的Tree组件无法展开 #6725

New-Lanke opened this issue Jan 26, 2025 · 0 comments · May be fixed by #6727
Labels
untriaged need to sort

Comments

@New-Lanke
Copy link

描述错误

受控的Tree组件,expanded-keys 属性中放入一个空的值或其他不存在于树中的id,组件将无法展开。控制台无报错信息。

The following machine translation content:
A controlled Tree component cannot be expanded if an empty value or other ID that does not exist in the tree is placed in the expanded keys attribute. The console has no error messages.

复现步骤

  1. 点击进入最小复现链接
  2. 点击界面中的“ADD empty key”按钮
  3. 尝试展开树节点,会发现展开失败

The following machine translation content:

  1. Click to enter the minimum reproduction link
  2. Click on the "ADD empty key" button in the interface
  3. Attempting to expand tree nodes will result in expansion failure

最小复现链接

https://codesandbox.io/p/sandbox/billowing-smoke-x8lj52?workspaceId=ws_4GMHPdWZ6AyQ4GdpvbcDKp

系统信息

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
    Memory: 3.06 GB / 15.84 GB
  Binaries:
    Node: 20.18.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.15.0 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (131.0.2903.99)
    Internet Explorer: 11.0.19041.4355

使用的包管理器

npm

验证

@New-Lanke New-Lanke added the untriaged need to sort label Jan 26, 2025
New-Lanke added a commit to New-Lanke/naive-ui that referenced this issue Jan 27, 2025
New-Lanke added a commit to New-Lanke/naive-ui that referenced this issue Jan 27, 2025
@New-Lanke New-Lanke linked a pull request Jan 27, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant