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

row-selection param cause cannot read property '__disableEmitter' of undefined #3999

Closed
wjaven opened this issue Apr 27, 2021 · 8 comments
Closed
Labels
🤔 Need Reproduce We cannot reproduce your problem outdated

Comments

@wjaven
Copy link

wjaven commented Apr 27, 2021

Version

2.1.3

Environment

"ant-design-vue": "2.1.3",
"vue": "3.0.11",
"vue-router": "4.0.3",
"vue-i18n": "9.1.6"

Steps to reproduce

When I change page (vue-router),the errors happen. And found that when I delete row-selection param in a-table,It won't happen。

vue-i18n.esm-bundler.js?47e2:1775 Uncaught (in promise) TypeError: Cannot read property '__disableEmitter' of undefined
at Proxy.beforeUnmount (vue-i18n.esm-bundler.js?47e2:1775)
at callWithErrorHandling (runtime-core.esm-bundler.js?5c40:154)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js?5c40:163)
at Array.hook.__weh.hook.__weh (runtime-core.esm-bundler.js?5c40:1953)
at invokeArrayFns (shared.esm-bundler.js?9ff4:470)
at unmountComponent (runtime-core.esm-bundler.js?5c40:4824)
at unmount (runtime-core.esm-bundler.js?5c40:4736)
at unmountChildren (runtime-core.esm-bundler.js?5c40:4864)
at unmount (runtime-core.esm-bundler.js?5c40:4760)
at unmountChildren (runtime-core.esm-bundler.js?5c40:4864)

I have found a similar issue in 'vue-i18n-next' and show it's solved in [email protected] or later, but I use [email protected]. And I found use row-selection param in a-table it happen again. So, I can not sure what's the problem with it.

image

@wjaven
Copy link
Author

wjaven commented Apr 28, 2021

I found the unmountComponent is this when the error happen,but I don't write this component。
image

@wjaven
Copy link
Author

wjaven commented Apr 28, 2021

Now I found that when I remove fixed setting in row-selection, the error It didn't happen too.

@ngwinglam
Copy link

Now I found that when I remove fixed setting in row-selection, the error It didn't happen too.

I found that the problem may occurred in the component SelectionCheckboxAll in Table. When you use the fixed and columnTitle setting in rowSelection, the error will not happen.

@wjaven wjaven closed this as completed Apr 29, 2021
@wjaven wjaven reopened this Apr 29, 2021
@wjaven
Copy link
Author

wjaven commented Apr 29, 2021

Now I found that when I remove fixed setting in row-selection, the error It didn't happen too.

I found that the problem may occurred in the component SelectionCheckboxAll in Table. When you use the fixed and columnTitle setting in rowSelection, the error will not happen.

I haved try this and It is, but I will use SelectionCheckboxAll. There is something wrong, but I'm not sure which dependency caused the problem.

@lzdzjl
Copy link

lzdzjl commented Jun 24, 2021

This problem can be avoided by setting fixed in rowselection to flase and then configuring the CSS style of table.

@tangjinzhou tangjinzhou added the 🤔 Need Reproduce We cannot reproduce your problem label Aug 4, 2021
@github-actions
Copy link

github-actions bot commented Aug 4, 2021

Hello @wjaven. Please provide a online reproduction by forking this link for vue2link for vue3 or a minimal GitHub repository. Make sure to choose the correct version.

你好 @wjaven, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 for vue2此处 for vue3 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

@github-actions
Copy link

Since the issue was labeled with Need Reproduce, but no response in 7 days. This issue will be closed. If you have any questions, you can comment and reply.

由于该 issue 被标记为需要复现信息,却 7 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤔 Need Reproduce We cannot reproduce your problem outdated
Projects
None yet
Development

No branches or pull requests

4 participants