Angular2-Toaster: Toast TapToDismiss does not override the global config

If a toast defined a different value for tapToDismiss in its toasterConfig compared to the global configuration, this is ignored.

My use case: I normally do not want to allow tap To Dismiss, but on some toasts I would like to perform an action on click, but is currently not possible since tabToDismiss is set to false.

Alternatively, execute the clickHandler when present even if tabToDismiss is set to false, since this option by its name should only enable or disable the dismiss on click not the execution of a custom clickHandler

Thanks

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (15 by maintainers)

Most upvoted comments

@friksa It’s a great suggestion and probably the safest way forward for now. Thank you for the options object suggestion!