solid-toast
solid-toast copied to clipboard
How to make it so when toast shows up, the focus from active `<input` is not dropped?
Replication of issue in video:
https://github.com/ardeora/solid-toast/assets/6391776/23c06701-cc03-494d-aa37-80c130d08c2a
The code for above case is here: https://github.com/learn-anything/learn-anything.xyz/blob/dev/website/src/routes/profile.tsx#L84
I am not sure how to make it so the focus from <input is not dropped when toast shows up.
You have clicked the 'Save' button, so the input tag lost focus. 🧐 I think this is normal situation, and has nothing to do with this library. Or you can always keep the input tag focused in the event you bind to the save button ?