timolins / react-hot-toast

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

Toast container is hided behind iOS virtual keyboard #360

Open tntchn opened 4 months ago

tntchn commented 4 months ago

I'm using react hot toast to show form submit event payload checking on my website. When click the submit button in the form, I would like to show the error message with react hot toast.

Currently, the toaster container's style is set like this

<div style="position: fixed; z-index: 9999; inset: 16px; pointer-event: none"></div>

The current behavior of my website is to focus on invalid input and show the toast message. However, when I used the website on Safari in iOS, the virtual keyboard open and the toast message was hided behind the virtual keyboard.

Is there any method to shrink the toast container division to the real viewport?