bootstrap-notify icon indicating copy to clipboard operation
bootstrap-notify copied to clipboard

notify options should be cleared after hide()

Open larsbo opened this issue 12 years ago • 3 comments

i create a notify message like

var notifyContainer = $('.top-right');
var message = notifyContainer.notify({
message: { html: "<div>some html stuff here</div>" },
fadeOut: { enabled: false },
closable: false
});

and hide it with message.hide().

but when i fire another notfiy like

notifyContainer.notify({
message: { text: 'some text this time' }
}).show();

there appears still the old one with the old html text, options like closable: false.

i think there should be a way to clear this. i tried it by reset each option manually but that is not the best way i guess ;-)

larsbo avatar Jan 30 '13 10:01 larsbo

I'm seeing this same behavior when html is used as the message. The first notification's html persists and the second notifications html message doesn't completely override the previous one's html.

jodytate avatar May 15 '13 14:05 jodytate

I add clear it manually in my code: notifyContainer.html('')

amrography avatar Jul 12 '16 12:07 amrography

It appears there isnt an option for this. Are people just watching the onClosed event and then calling notifyContainer.html('') ?

jtal avatar Apr 12 '17 06:04 jtal