close publisher input when losing focus

This fixes #3894

*updated changelog
*added jasmine test