bootstrap-notify
bootstrap-notify copied to clipboard
notify options should be cleared after hide()
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 ;-)
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.
I add clear it manually in my code:
notifyContainer.html('')
It appears there isnt an option for this. Are people just watching the onClosed event and then calling notifyContainer.html('') ?