atom / autosave

Autosaves buffers when they lose focus
MIT License
63 stars 29 forks source link

Fix autosave not working without shadow DOM #71

Closed as-cii closed 7 years ago

as-cii commented 7 years ago

When the editor element is blurred, the DOM will now dispatch an event indicating the hidden <input> element as its target and the newly focused element as its relatedTarget. This pull request fixes autosave to work correctly when shadow DOM is enabled.