You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When hooking into any of the available onDestroy(), onDestroyStarted(), etc. An Unable to preventDefault inside passive event listener invocation. is thrown in the console. If my reading is correct this is because the code is calling preventDefault() on incoming events which is causing this error to be thrown when the event is passive.
Potential Fixes Ive found:
Filter out the passive events in the onDriverClick() function call
Add { passive: false } to the event listener responsible for firing onDriverClick()
Note I am seeing this an Angular 12 project so it might be and angular interaction issue. I currently have a workaround by removing the buttons' css classes and manually adding event listeners which call moveNext() etc.
The text was updated successfully, but these errors were encountered:
When hooking into any of the available onDestroy(), onDestroyStarted(), etc. An
Unable to preventDefault inside passive event listener invocation.
is thrown in the console. If my reading is correct this is because the code is callingpreventDefault()
on incoming events which is causing this error to be thrown when the event is passive.Potential Fixes Ive found:
onDriverClick()
function call{ passive: false }
to the event listener responsible for firingonDriverClick()
The text was updated successfully, but these errors were encountered: