Fixed a minor bug in the floating panel component where updating the focus handling while the panel is shown was registering for events incorectly.