Message Input component | Vaadin components

This topic is the discussion thread for the Vaadin documentation page Message Input component | Vaadin components.

Questions, feedback, and comments are welcome here.

How to trigger onSubmit event when TextField is empty?

When i click on send Button when TextField is empty, it focuses and onSubmit is never called.

I have added attachment button and when there is attachment i need to allow empty message.