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

Tabs组件使用titles插槽,在title超宽需要滚动情况下,报错“未找到对应节点: #nut-tabs__titles_xxxxxx .nut-tabs__titles-item” #427

Open
LeeLulin opened this issue Sep 23, 2024 · 0 comments
Labels
🐞 bug 已验证的缺陷

Comments

@LeeLulin
Copy link
Contributor

nutui-uniapp 版本号

1.7.17

平台

weapp

重现链接

https://github.com/LeeLulin/nutui-uniapp-demo

重现步骤

Tabs组件使用titles插槽,在title超宽需要滚动的情况下,点击切换tab,报错“未找到对应节点: #nut-tabs__titles_xxxxxx .nut-tabs__titles-item”
image
经排查,在使用titles插槽情况下,scrollIntoView方法找不到相应节点
image
image

期望的结果是什么?

切换tab不报错,正常滚动大对应位置

实际的结果是什么?

点击切换tab,报错“未找到对应节点: #nut-tabs__titles_xxxxxx .nut-tabs__titles-item”,无法滚动到相应位置

环境信息

No response

其他补充信息

No response

@xiaohe0601 xiaohe0601 added the 🐞 bug 已验证的缺陷 label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug 已验证的缺陷
Projects
None yet
Development

No branches or pull requests

2 participants