timolins / react-hot-toast

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

Toast doesn't disappear on mobile #300

Open Facug03 opened 12 months ago

Facug03 commented 12 months ago

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

Stevemoretz commented 11 months 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 10 months 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 10 months 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