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

[t-select] 添加属性 :min-collapsed-num="2" 后报错 Error in render: "TypeError: Cannot read properties of undefined (reading 'find')" #2994

Closed
MagicReader opened this issue Dec 21, 2023 · 2 comments
Assignees
Labels
🐞 bug Something isn't working to be published fixed, not be published vue 2.7 the issue about naruto version for vue2.7

Comments

@MagicReader
Copy link

MagicReader commented Dec 21, 2023

tdesign-vue 版本

"tdesign-vue": "^1.8.0-naruto"

重现链接

No response

重现步骤

选择三个选项


    <t-select
      v-if="options.length === 0"
      v-model="valueView"
      style="width: 100%;margin: 0 0 0 6px;"
      multiple
      filterable
      placeholder="未选择"
      clearable
      :min-collapsed-num="1"
      @change="handleValueViewChange"
    >
      <t-option
        v-for="item, index in valueArray"
        :key="index"
        :label="item[`${fieldDataText}`]"
        :value="String(item[`${fieldDataValue}`])"
      />
    </t-select>

期望结果

可以正常展示折叠情况

实际结果

image
选中第三个后组件报错

框架版本

Vue2.7

浏览器版本

No response

系统版本

Window10

Node版本

14.16.0

补充说明

异常信息:
image

Copy link
Contributor

👋 @MagicReader,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn self-assigned this Dec 22, 2023
@uyarn uyarn added 🐞 bug Something isn't working vue 2.7 the issue about naruto version for vue2.7 to be published fixed, not be published labels Dec 22, 2023
@uyarn
Copy link
Collaborator

uyarn commented Jan 2, 2024

fixed 1.8.4-naruto

@uyarn uyarn closed this as completed Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working to be published fixed, not be published vue 2.7 the issue about naruto version for vue2.7
Projects
None yet
Development

No branches or pull requests

2 participants