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输入框内标签渲染异常 #95

Open
le0l1 opened this issue Nov 13, 2024 · 1 comment
Open

多选模式下选中后 Select输入框内标签渲染异常 #95

le0l1 opened this issue Nov 13, 2024 · 1 comment

Comments

@le0l1
Copy link

le0l1 commented Nov 13, 2024

异常截图

Screen Shot 2024-11-13 at 10 28 48

期望表现

Screen Shot 2024-11-13 at 10 29 35

复现步骤

  1. 初次进入直接勾选第一级的checkbox
  2. 此时输入框内标签渲染异常

目前定位是代码内判断必须要选中的值包含了选项,才会添加到Select.cachedOptions里,导致部分值未能正确找到标签内容进行渲染

this.data.forEach((item) => {
if (
this.values.includes(item.value) &&
!select.cachedOptions.some((cached) => cached.value === item.value)
) {
select.cachedOptions.push(item);
}
});

@yujinpan
Copy link
Owner

Fixed in v2.1.1-beta.17

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