jpillora / notifyjs

Notify.js - A simple, versatile notification library
https://notifyjs.jpillora.com/
MIT License
1.91k stars 743 forks source link

Safari browser issue: undefined is not an object (evaluating 'l.nodeType') #132

Open saurabhkulkarni26 opened 4 years ago

saurabhkulkarni26 commented 4 years ago

I'm seeing an issue on safari browser (mac os) mentioned in the title. This error does not come up when the notify js going to fire the notifications or even during page load. If I look at resources in the browser developer mode, the script is visible and loaded. I have a form on my page which user edits and clicks save, post which the notification is supposed to appear. The error however comes up when I click on Edit button, which is strange. I see for every click handlers function from jquery js is called but for some specific clicks like edit form, the e.target comes undefined in handlers. This is for all browsers but all other browsers handle this error with internal script but safari isn't able to handler the error and throws error on screen. Is there any specific setting needed safari browsers?