jpillora / notifyjs

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

layout is lost with latest jquery 3.6.0 #138

Open edjekadetje opened 3 years ago

edjekadetje commented 3 years ago

The text and title dont show anymore with latest jquery version

cybenauts commented 2 years ago

Copy

cybenauts commented 2 years ago

If you are using additional styles for eg. metro or bootstrap. Avoid self closing HTML tags $.notify.addStyle("metro", { html: "<div>" + "<div class='image' data-notify-html='image'></div>" + "<div class='text-wrapper'>" + "<div class='title' data-notify-html='title'></div>" + "<div class='text' data-notify-html='text'></div>" + "</div>" + "</div>", classes: {........

Use <div>...</div> instead of <div ... />

edjekadetje commented 2 years ago

I solved it by editing the notify-metro.js, that script has closing tags. Maybe update the lib with this