Rails prevent form submit on enter July 8, 2019 16 32 64 128 React form onsubmit React hook form best practices