You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We just updated to v10.0.5 from v9.x. The docs for v10 say closeOnClick now defaults to false, however in our tests that's not true.
With it set to false like the following code, toasts do not close when clicked (unless they click a dismiss button). Removing this prop enables the close-on-click functionality, I can now close the toasts when clicking anywhere on them.
<ToastContainerautoClose={5000}className={styles.notificationToasts}closeButton={CloseButton}closeOnClick={false}// removing this enables the functionalityhideProgressBarnewestOnToptoastClassName={styles.notificationToast}transition={slideTransition}/>
The text was updated successfully, but these errors were encountered:
Don't take my questioning so personally, it seems like you didn't even read the issue because what you're pointing out has no relevance. So I asked for clarification
We just updated to v10.0.5 from v9.x. The docs for v10 say
closeOnClick
now defaults to false, however in our tests that's not true.With it set to false like the following code, toasts do not close when clicked (unless they click a dismiss button). Removing this prop enables the close-on-click functionality, I can now close the toasts when clicking anywhere on them.
The text was updated successfully, but these errors were encountered: