notifyjs icon indicating copy to clipboard operation
notifyjs copied to clipboard

autoHide:false overridden by early message

Open protobi opened this issue 10 years ago • 1 comments

Minor. An earlier notification with autoHide:true can cause a later notification with autoHide: false to disappear if they are attached to the same element.

$("#form").notify("Sending message", {className: "info"})
$.post(url, message, function(data, status, xhr) {
    $("#form").notify("Message sent", {className: "success", autoHide: false});
   // this disappears if it returns before the first note does
});

protobi avatar Jan 09 '15 04:01 protobi

What would the desired behavior to be if the notifications don't stack? Or, is this just going towards stacking functionality?

I'm going to slate this for 0.5 towards stacking. That's the right-most way to solve this problem.

EvanCarroll avatar Nov 03 '15 18:11 EvanCarroll