Add trigger memory feature to popover module
sebnitu opened this issue · comments
Problem
When focus is set inside a popover element and it's then closed, the focus on the page gets lost.
Solution
We should instead store the trigger element in memory and restore its focus in specific cases where it makes sense such as focus being lost when a popover has focus but is then closed.