LiveView window blur causes phx_blur on inputs still in focus

I’m building multiplayer forms, and when the user has focus on an input and then switches windows or tabs, the input is still focused but phx_blur is run (i.e. phx_blur runs when the input is still in focus).

This causes a side-effect for multiplayer forms because the value of inputs in focus is never changed by LiveView (a good thing).

Does anyone know a good workaround for this? Right now I am adding javascript to the page to blur the input on window blur, but I think this is a bad smell.