Fixed issues with submit and other non-input inputs