Determine focus using document.activeElement instead of component state
Don’t handle text editor focus when it already has focus
Replace focusout event handlers on hiddenInput shim with blur handlers

The focusout event doesn’t seem to work for elements in the shadow DOM.
Other people seem to share this experience:

https://code.google.com/p/chromium/issues/detail?id=378163#c7