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

[ScrollContainer] [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. #1326

Closed
nextgennexia opened this issue Apr 4, 2019 · 2 comments · Fixed by #1330
Assignees
Labels

Comments

@nextgennexia
Copy link

Версия: 0.45.0
Браузер: chrome

Скроллить вверх, когда список максимально вверху / скроллить вниз, когда список максимально внизу
image

@wKich
Copy link
Member

wKich commented Apr 4, 2019

Похоже прилетело с новой версией хрома. Воспроизводится даже на старых версиях библиотеки

@wKich
Copy link
Member

wKich commented Apr 4, 2019

Вот тут выкатилось https://www.chromestatus.com/features/6662647093133312

И react не поддерживает пока листнеров с passive: true facebook/react#6436

Тут вот ещё обсуждают facebook/react#14856

@wKich wKich added the bug label Apr 4, 2019
@wKich wKich changed the title [ComboBox] [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. [ScrollContainer] [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. Apr 5, 2019
@wKich wKich self-assigned this Apr 8, 2019
wKich added a commit that referenced this issue Apr 8, 2019
Hotfix workaround for chrome 73 https://www.chromestatus.com/features/6662647093133312. Due react
don't support passive event listener we are subscribe on these events through `addEventListener`
with `{ passive: false }` option. Current status of supporting passive events in react
facebook/react#6436

fix #1326
@zhzz zhzz closed this as completed in #1330 Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants