SchweizerischeBundesbahnen/scion-workbench

Restore focus when activating a view

danielwiehl opened this issue · 0 comments

Is your feature request related to a problem? Please describe.

When activating a view, the most recently active element is not focused.

Describe the solution you'd like

When activating a view, the focus is restored to the last focused element of that view.

How to reproduce

  1. Open a view (view 1)
  2. Open another view (view 2)
  3. Focus element in view 2
  4. Activate view 1
  5. Activate view 2
  6. The focus should be restored in view 2

Scope

Restoring focus should work in both workbench and microfrontend views.