add the click-outside component and modifies the message-form/text-input components to apply the new feature (cherry picked from commit 654357e6984160fe8ea074fcfa1103f7b51500bc)