react-hot-toast icon indicating copy to clipboard operation
react-hot-toast copied to clipboard

Toast doesn't disappear on mobile

Open Facug03 opened this issue 2 years ago • 4 comments

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

Facug03 avatar Aug 08 '23 19:08 Facug03

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.

Stevemoretz avatar Aug 23 '23 09:08 Stevemoretz

@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.

StasNemy avatar Sep 14 '23 17:09 StasNemy

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

Peepersoak avatar Oct 02 '23 20:10 Peepersoak