Delete empty lines in invoices on submit

I didn’t had this issue before.

When I create an invoice and add items, there is very often an empty line added at the end of the table.

Is it possible to delete this line automatically on submit. Few versions ago I didn’t had this issue.

No I need to click on the line to open it and click on the trash button every time. This is annoying.

Thanks

How does this line come?

like pressing enter or tab when filling the qty and value