Search code examples
javascriptnotificationsonclicktoastr

Prevent close Toastr on Click


I´m trying to keep toastr open alway but it´s dissapear when I click on it, I set extendedTimeOut = 0 , however the toastr dissapear when click on it, so I need a way it never closes even when I make click on it


Solution

  • I found a toastr option to do it

    toastr.options.tapToDismiss = false
    

    Example: https://jsfiddle.net/w96udv4e/5/