palcarazm / bootstrap5-toggle

Bootstrap 5 Toggle is a bootstrap plugin/widget that converts checkboxes into toggles.
https://palcarazm.github.io/bootstrap5-toggle/
MIT License
38 stars 4 forks source link

[BUG] [Violation]Added non-passive event listener to a scroll-blocking event. Consider marking event handler as 'passive' to make the page more responsive #156

Closed g-pane closed 4 months ago

g-pane commented 6 months ago

Describe the bug [Violation]Added non-passive event listener to a scroll-blocking event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

To Reproduce Steps to reproduce the behavior and minimal code:

  1. Go to 'Console' on Chrome/Edge

Expected behavior No console warning

Package:

Desktop: (please complete the following information)

Additional context It happened with defferent event like "touchstart" and more.

github-actions[bot] commented 6 months ago

Hi! :wave: Thanks for your issue. You are helping to improve Bootstrap 5 toggle.

palcarazm commented 4 months ago

Forgive me for attending to the matter belatedly. I have been busy with other projects.

I can see that this is a complex issue that needs to be looked at with caution. I am leaving the ticket open in case someone could assist me with the solution.

It should occur in the block "// 9: Add listeners"

Thanks for your report 😄 .