Skip to content

Select多选,选了多个label相同的选项,close中间的选项,会引发崩溃 #1111

Closed

Description

@steve7Zheng

https://stackblitz.com/edit/vitejs-vite-dzkshhf4?file=src%2Fcomponents%2FTreeSelectDemo.vue

原因:Bug 出在 components/select/base.vdt 的 key 优先级逻辑上,在渲染标签时错误地使用了“选项名称(Label)”作为唯一标识符(Key)。 当存在多个名称相同的选项时,删除操作会触发动画引擎的内部逻辑冲突,导致它在计算位置时因找不到正确的 DOM 节点而崩溃。

临时Hack解决
https://stackblitz.com/edit/vitejs-vite-26bpwjno?file=src%2Fcomponents%2FTreeSelectDemo.vue

Activity

  1. SyilviaLee commented on Jan 29, 2026

    @SyilviaLee
  2. added a commit that references this issue on Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions