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

[TreeSelect] 官网 Demo 自定义选中项展示多选标签 close 按钮失效且控制台报错 #2601

Closed
fython opened this issue Jul 21, 2023 · 3 comments
Labels
to be published fixed, not be published

Comments

@fython
Copy link
Contributor

fython commented Jul 21, 2023

tdesign-vue 版本

1.3.1 & 1.4.8

重现链接

https://tdesign.woa.com/vue/components/tree-select?tab=demo#%E8%87%AA%E5%AE%9A%E4%B9%89%E9%80%89%E4%B8%AD%E9%A1%B9%E5%B1%95%E7%A4%BA

重现步骤

image

TDesign Vue 官网 Demo(1.4.8 版本)- TreeSelect - 自定义选中项展示

期望结果

点击关闭按钮后,选项正常移除

实际结果

点击关闭按钮不生效,控制台报错:

[Vue warn]: Error in v-on handler: "TypeError: Cannot destructure property 'trigger' of 'ct' as it is undefined."

found in

---> <TTag>
       <TInput>
         <TInputMapprops>
           <TTagInput>
             <Anonymous>
               <Anonymous>
                 <TPopup>
                   <TPopupMapprops>
                     <TSelectInput>
                       <TTreeSelect>
                         <TSpace>
                           <Demoexamplevaluedisplay> at ../src/tree-select/_example/valuedisplay.vue
                             <Anonymous> at ../src/tree-select/tree-select.md
                               <Page> at src/components/page.vue
                                 <App> at src/App.vue
                                   <Root>
nn @ index.edbc1676.js:5
kE @ index.edbc1676.js:12
LE @ index.edbc1676.js:12
a1 @ index.edbc1676.js:12
Ah @ index.edbc1676.js:12
n @ index.edbc1676.js:12
o._wrapper @ index.edbc1676.js:16
index.edbc1676.js:12 TypeError: Cannot destructure property 'trigger' of 'ct' as it is undefined.
    at d.tagChange (index.edbc1676.js:127:51606)
    at onClose (index.edbc1676.js:127:56071)
    at Object.onClose (valuedisplay.2225eba7.js:1:12771)
    at rn (index.edbc1676.js:68:42532)
    at d.handleClose (index.edbc1676.js:68:134733)
    at Ah (index.edbc1676.js:12:10014)
    at SVGSVGElement.n (index.edbc1676.js:12:13598)
    at o._wrapper (index.edbc1676.js:16:2771)

框架版本

Vue 2.6

浏览器版本

114.0.5735.198(正式版本) (x86_64)

系统版本

macOS 13.4.1

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

♥️ 有劳 @Godlike-meteor 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @fython

sinbadmaster added a commit to sinbadmaster/tdesign-vue that referenced this issue Jul 27, 2023
修复关闭自定义标签报错,并无法关闭

Tencent#2601
sinbadmaster added a commit to sinbadmaster/tdesign-vue that referenced this issue Jul 27, 2023
uyarn pushed a commit that referenced this issue Jul 28, 2023
* fix(tree-select): 自定义标签关闭异常

修复关闭自定义标签报错,并无法关闭

#2601

* fix: 删除无用代码

#2601
@uyarn uyarn added the to be published fixed, not be published label Jul 28, 2023
@xiaosansiji
Copy link
Collaborator

xiaosansiji commented Aug 2, 2023

fixed in 1.5.2

KMethod pushed a commit to KMethod/tdesign-vue that referenced this issue Aug 25, 2023
* fix(tree-select): 自定义标签关闭异常

修复关闭自定义标签报错,并无法关闭

Tencent#2601

* fix: 删除无用代码

Tencent#2601
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

3 participants