Tram-One / tram-one

🚋 Legacy View Framework For Vanilla Javascript
http://tram-one.io/
MIT License
36 stars 8 forks source link

Rewrite of Focus Logic #163

Closed JRJurman closed 3 years ago

JRJurman commented 3 years ago

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