solid-toast icon indicating copy to clipboard operation
solid-toast copied to clipboard

How to make it so when toast shows up, the focus from active `<input` is not dropped?

Open nikivdev opened this issue 2 years ago • 1 comments

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.

nikivdev avatar Dec 27 '23 11:12 nikivdev

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 ?

HyaCiovo avatar May 08 '24 03:05 HyaCiovo