timolins / react-hot-toast

Smoking Hot React Notifications 🔥
https://react-hot-toast.com
MIT License
9.84k stars 331 forks source link

Toast doesn't disappear on mobile #300

Open Facug03 opened 1 year ago

Facug03 commented 1 year ago

When you click the toast on the phone it doesn't close example: https://youtube.com/shorts/Mw_9kLAbwm8?feature=share

Stevemoretz commented 1 year ago

When you click the toast on the phone it doesn't close example: https://youtube.com/shorts/Mw_9kLAbwm8?feature=share

It's supposed to stay if you hover it or click it until you click somewhere else.

StasNemy commented 1 year ago

@Stevemoretz does not always work. Apparently the problem of rendering.

@Facug03 Sometimes you need to explicitly specify duration, sometimes get toast id and through setTimeout close it. I did not find another solution.

Peepersoak commented 1 year ago

I hope this is being worked on, my current fix is just adding a 'dismissed' button on the notification and it does not look good with that, another thing is that clicking the notif then clicking outside of it will dismiss it