Possibility to fire any event on submit empty MessageInput component

Hi, is there any easy way or workaround to fire an event when empty MessageInput is submited? I use Vaadin 24.1.1. I need something like that to send files stored in Upload even though the MessageInput is empty. I could create my own component just with TextField and Button, but maybe there is any better way.