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

Slider: "Unable to preventDefault inside passive event listener invocation" in primevue_slider.js (touchmove) #5745

Open
GlebMatveev opened this issue May 15, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@GlebMatveev
Copy link

Describe the bug

Hello!

I'm getting the error "Unable to preventDefault inside passive event listener invocation" in primevue_slider.js when I use the Slider component on a mobile device (Android, Chrome).

The error is only reproduced on a mobile device when moving the slider with a finger.

When moving the slider with the mouse, the error does not occur.

I'm guessing the error is related to the touchmove event.

Screenshot_4

PrimeVue.Slider.Bug.mp4

Reproducer

https://stackblitz.com/edit/vitejs-vite-2taiwj

PrimeVue version

4.0.0-beta.2

Vue version

3.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

The error can be reproduced by opening my example at https://stackblitz.com/edit/vitejs-vite-2taiwj, connecting the mobile device to the PC and opening the console (chrome://inspect/#devices).

Expected behavior

No response

@GlebMatveev GlebMatveev added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 15, 2024
@Ben-Avrahami
Copy link

Ben-Avrahami commented May 15, 2024

i have the same issue on 3.51.0
seems to also be happening at the official documentation sliders
https://tailwind.primevue.org/slider/#input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants