Closed richyrb00 closed 2 years ago
Hi - thanks for reporting.
Seems like Safari isolated issue. What ES target are you using in your build scripts?
Seems like the handleIndicators
method is called after a scroll but the slider is no longer in the document - could have been unloaded?
This is the method:
handleIndicators
You can try to add to the source a null guard:
if (!sliderElement) return;
I will try to test on Safari mobile to see if it is reproducable.
@nicped i see @Andscowal has created a PR for this could we get that reviewed and merged if accepted?
I have created a new pull request containing this change and released a 1.6.0 with this change and a couple of other minor fixes.
Describe the bug We use error tracking software on our website and an event that is popping up regualrly relates to
'undefined is not an object' f(t&&Object.prototype.hasOwnProperty.call(t,"addEventListener")){T(t,"addEventListener",function(o){var i={component:"".concat(e,".prototype
Crashed in non-app: ./node_modules/swiffy-slider/src/swiffy-slider.esm.js in handleIndicators
To Reproduce unfortunatly we cannot provide steps to reproduce due to it been an intermittent issue.
Expected behavior expected it not to occur?
Screenshots N/A
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Our application is on NEXTJS.
and example of how swiffy is rendered in a component.