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

The table set sticky will report error #4808

Closed
1 task
chay-xu opened this issue Oct 26, 2021 · 1 comment
Closed
1 task

The table set sticky will report error #4808

chay-xu opened this issue Oct 26, 2021 · 1 comment
Labels

Comments

@chay-xu
Copy link

chay-xu commented Oct 26, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.0.0-alpha.4

Environment

vue3

Reproduction link

const bodyScrollWidth = computed(() => props.scrollBodyRef.value.scrollWidth || 0);

Steps to reproduce

<a-table :sticky="true" />

What is expected?

resolve the error

What is actually happening?

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'scrollWidth')
at ReactiveEffect.fn (stickyScrollBar.js:22)
at ReactiveEffect.run (reactivity.esm-bundler.js:160)
at ComputedRefImpl.get value [as value] (reactivity.esm-bundler.js:1086)
at ReactiveEffect.fn (stickyScrollBar.js:28)
at ReactiveEffect.run (reactivity.esm-bundler.js:160)
at ComputedRefImpl.get value [as value] (reactivity.esm-bundler.js:1086)
at runtime-core.esm-bundler.js:7022
at Array.map ()
at ReactiveEffect.getter [as fn] (runtime-core.esm-bundler.js:7020)
at ReactiveEffect.run (reactivity.esm-bundler.js:160)

@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 Oct 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant