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
This is either a bug or a misunderstanding of the removeOnHoverTimeOut.
// Display the message 4s per error, so that the user has time to see all missing fields (UX)consttimeout=fields.length*4000;toastr.error(title,{position: 'bottom-left',// Because in production, in the iframe, we don't see them if they're on toptimeOut: timeout,removeOnHover: true,removeOnHoverTimeOut: timeout,component: <pdangerouslySetInnerHTML={{__html: message}}/>,closeOnToastrClick: false,});
I'm setting timeOut and removeOnHoverTimeOut to accomplish the following behaviour:
Validation error (form) happen, display a toast
Toast should be displayed 4 seconds per error field
If user hovers on the toast, the toast should keep being displayed, allow error message copy, timeout should pause during hovering (provide enough time for user to read the error message and figure out what's wrong without stress)
If user has hovered and stops hovering then timeout should either use the removeOnHoverTimeOut value (basically reset the timeout), or use the last timeout value before pausing (timeout goes back to the value it was set before it was paused)
Current behaviour:
Validation error (form) happen, display a toast
Toast is be displayed 4 seconds per error field
If user hovers on the toast, the toast keep being displayed, allows error message copy, timeout does pause during hovering
If user has hovered and stops hovering then timeout goes wild and is set back to 1000 instead of the removeOnHoverTimeOut value and the message gets hidden too fast
The text was updated successfully, but these errors were encountered:
I mostly ignored the UX issue, if the use hovers on the toast then it'll hide too fast but can't do much about it without digging into the bug itself.
consttimeout=fields.length*4000;toastr.error(title,{position: 'bottom-left',// Because in production, in the iframe, we don't see them if they're on toptimeOut: timeout,removeOnHover: true,removeOnHoverTimeOut: timeout,component: <pdangerouslySetInnerHTML={{__html: message}}/>,closeOnToastrClick: false,});
I'm contented with the following, wish it'd be better but it ain't that critical in my case
This is either a bug or a misunderstanding of the
removeOnHoverTimeOut
.I'm setting
timeOut
andremoveOnHoverTimeOut
to accomplish the following behaviour:removeOnHoverTimeOut
value (basically reset the timeout), or use the last timeout value before pausing (timeout goes back to the value it was set before it was paused)Current behaviour:
1000
instead of theremoveOnHoverTimeOut
value and the message gets hidden too fastThe text was updated successfully, but these errors were encountered: