Hi,
Thanks for this lib !
I'm experiencing a weird problem when I want to update a toast that was created with draggable: false
Here's my code to update the toast :
toast.update(toastId, {
render: `I'm updated`,
type: toast.TYPE.SUCCESS,
autoClose: true,
closeButton: true,
closeOnClick: true,
draggable: true
});
Everything works perfectly except for the draggable. The toast can't be drag even with draggableset to true.
Is that a bug ?
Thanks for your help !
Hello @LouisCuvelier,
You just spotted a bug well done 馃憣.
For the draggable props, I bound the events inside componentDidMount but in the case of an update componentDidMount is not called. This is why the draggable props is not working.
I'll work on a fix.
Thanks
@LouisCuvelier I published the fix
Thank you @fkhadra for this reactivity !