notifyjs icon indicating copy to clipboard operation
notifyjs copied to clipboard

layout is lost with latest jquery 3.6.0

Open edjekadetje opened this issue 3 years ago • 3 comments

The text and title dont show anymore with latest jquery version

edjekadetje avatar Mar 04 '21 18:03 edjekadetje

Copy

cybenauts avatar Mar 07 '22 11:03 cybenauts

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 ... />

cybenauts avatar Mar 07 '22 12:03 cybenauts

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

edjekadetje avatar Apr 26 '22 13:04 edjekadetje