We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在跳出有router-tab组件的页面时,如果鼠标正好处理tabscroll,会出现‘TypeError: Cannot read properties of undefined (reading 'clientWidth')’的错误。
重现行为的步骤:
// 更新滚动数据 update() { const { clientWidth, scrollWidth, scrollLeft } = this.$refs.container // 判断是否移动端 // userAgent 中包含 mobile 字段,或者浏览器滚动条宽度为 0 this.isMobile = /mobile/i.test(navigator.userAgent) || !getScrollbarWidth() Object.assign(this.scrollData, { clientWidth, scrollWidth, scrollLeft }) },
The text was updated successfully, but these errors were encountered:
fix(TabScroll): 修复错误 `TypeError: Cannot read properties of undefined …
9cf924c
…(reading 'clientWidth')` #131
v1.2.8 已发布,请更新试试
v1.2.8
Sorry, something went wrong.
已解决问题
910733c
No branches or pull requests
Bug 描述
在跳出有router-tab组件的页面时,如果鼠标正好处理tabscroll,会出现‘TypeError: Cannot read properties of undefined (reading 'clientWidth')’的错误。
问题重现
重现行为的步骤:
关键代码
开发环境(请填写以下信息)
The text was updated successfully, but these errors were encountered: