Moved the focus logic to happen when the element is being recreated, rather than at the mutation observer level. This resolves the issues we were seeing in #161 and is cleaner than the previous implementation (which required writing data to elements and tracking focus ourselves).
Summary
Moved the focus logic to happen when the element is being recreated, rather than at the mutation observer level. This resolves the issues we were seeing in #161 and is cleaner than the previous implementation (which required writing data to elements and tracking focus ourselves).
Checklist