Closed smhigley closed 11 months ago
Fixes #305
Not sure if this is the best approach, but it does fix the root issue. Some of the constraints are:
document.activeElement
body
activeElement
.blur()
Here's a reduced demo of the basic issue in Safari & Firefox: https://jsfiddle.net/5pcf9L64/
Fixes #305
Not sure if this is the best approach, but it does fix the root issue. Some of the constraints are:
document.activeElement
has already been set tobody
by the time the MutationObserver removedNodes mutation is detectedactiveElement
is set tobody
.blur()
on thedocument.activeElement
before it's removed, if we can figure out any way to do soHere's a reduced demo of the basic issue in Safari & Firefox: https://jsfiddle.net/5pcf9L64/