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

select组件中的popupScroll事件没有返回scrollTop或offsetHeight相关的数据 #1708

Closed
1 task
663759994 opened this issue Jan 11, 2020 · 5 comments
Closed
1 task
Labels

Comments

@663759994
Copy link

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

Version

1.4.10

Environment

macos,火狐:72.0.1,chrome:79.0.3945.117,VUE2.6.10

Reproduction link

https://www.antdv.com/components/select-cn/

Steps to reproduce

直接复制文档上的demo

What is expected?

应该有返回scrollTop或offsetHeight相关的数据来给我判断是否到达了底部,来实现分页加载,。

What is actually happening?

实际上返回来一些其他的东西,仔细查看来返回值,也并没有看到相关的字眼。这个在react上的版本似乎是有的

@wangxueliang
Copy link
Member

有事件对象,自己获取啊......

@DiamondsZz
Copy link

@663759994 解决了吗

@DiamondsZz
Copy link

直接打印事件对象的target.scrollTop是有值的

在控制台里面查看事件对象的target.scrollTop却是0

很奇怪。。。

@xrkffgg
Copy link
Member

xrkffgg commented Jul 20, 2020

https://codesandbox.io/s/affectionate-davinci-g58pd?file=/src/App.vue

触发的频率可以自己优化

@xrkffgg xrkffgg closed this as completed Jul 20, 2020
@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 Jul 21, 2021
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

4 participants