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

Closed
GlebMatveev opened this issue May 15, 2024 · 3 comments · Fixed by #6537
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

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

@caryhgq
Copy link
Contributor

caryhgq commented Sep 25, 2024

Components use .passive and .prevent together !
image

@pauldps
Copy link

pauldps commented Oct 28, 2024

This is also happening with the Knob component.

@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 11, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.2.2 milestone Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
5 participants