Ah, thanks for the report. It sounds like maybe the focus isn’t being released when the component is detached.
Your work-around essentially confirms this. (Though note you can also requestFocus(null) to clear the current focus.)
If you are feeling extra generous, maybe you can enter a bug for it.
Else I will try to remember to fix it soon. I’m overdue for a release anyway…