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

Error when using Slider's onDragEnd handler on mobile #240

Open
FDMatthias opened this issue May 12, 2021 · 0 comments
Open

Error when using Slider's onDragEnd handler on mobile #240

FDMatthias opened this issue May 12, 2021 · 0 comments

Comments

@FDMatthias
Copy link

Describe the bug

Error Unable to preventDefault inside passive event listener invocation. is shown in console when using the Slider and its "onDragEnd" property in a responsive mobile screen with touch functionality.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'https://digipolisantwerp.github.io/acpaas-ui_react/'
  2. Open chrome inspector and the console
  3. Scroll down to the Slider component and the first example
  4. Click "View Code"
  5. Remove the "onChange" handler but keep the "onDragEnd" and make sure it has code so that it should log the values to the console.
  6. Drag the slider value
  7. See no values being reported in the console but instead the error [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.

Expected behavior

The value being reported.

Screenshots

image

OS (please complete the following information):

  • Device: MacOS
  • OS: 10.15.7
  • Browser: Chrome
  • Version: 90.0.4430.212 (Official Build) (x86_64)

Additional context

No problem with using the Slider in non-responsive desktop mode.

cc https://github.com/olczake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant