I have recently updated my web app to use the latest version of Bootstrap 5 along with the toastr library. However, I have encountered issues with toastr options not functioning properly after the upgrade. Despite setting the values for toastr.options.timeOut and toastr.options.extendedTimeOut, the toast notifications still appear for a short duration. Here is the code snippet I am using:
let toastrSettings = {
timeOut: 5000,
extendedTimeOut: 5000
};
toastr.error('Some message', 'Some Title', toastrSettings);
Could it be that toastr (toastr/2.1.4/toastr.min.js) is not compatible with Bootstrap 5?
Alternatively, I have explored Bootstrap's built-in toasts and alerts. However, it seems that these components are directly inserted into the DOM. If toastr is not compatible with Bootstrap 5, I am seeking a library that allows for dynamic setting of title and content similar to toastr.
Thank you