discord/focus-layers

Missleading "Returning Focus" example

pascalduez opened this issue · 1 comments

Hi,

the Readme "Returning Focus" example is not working, the containerRef passed to the hook is empty and not assigned to an element. Also I guess it's now outdated.

So what would be the current "proper" way to return focus on a different element than the triggering one?

Thanks!

I ended up removing this behavior just because I couldn't get the ref setup working correctly, but meant to re-add after finishing up the rest of the package.

I think I can re-add this quickly, so I'll get to that now!