Norigin-Spatial-Navigation icon indicating copy to clipboard operation
Norigin-Spatial-Navigation copied to clipboard

Previous Element Focused when returning to Component

Open stuartflanagan opened this issue 1 year ago • 1 comments

Describe the bug Focus does not go back to expected element when returning to a component. It returns to focus the element before the Element expected. This would be an Implementation issue. Some help on why the element focused before this one is being chosen when returning to the component rather than the one used to leave the component would be great.

The Component has trackChildren: true

Expected behavior The component that has focus when moving to another container should be the One that is focused when retuning.

stuartflanagan avatar Jul 17 '22 09:07 stuartflanagan

Hello @stuartflanagan!

We have such logic ourselves and have not seen this problem, except in some cases where we were unmounting and remounting the component that we expected to have focus, causing it to be "forgotten".

Could it be that you are remounting the component that you are expecting the focus to fall back to?

If you could please provide an example, snippet or some more details, then we will try to help you out. Thanks!

predikament avatar Aug 24 '22 15:08 predikament

I will close this since it's been relatively stale for a while now. Please feel free to reopen or create a new issue if this is still a problem.

If so, please provide some more details as to your implementation so we can more easily help you troubleshoot.

Thanks!

predikament avatar Sep 07 '22 13:09 predikament