Fix newline appearing in textarea in ChatApp

Call event.preventDefault() to stop a newline being added to the
textarea in the MessageComposer component after sending a
message with enter.