mr-ui icon indicating copy to clipboard operation
mr-ui copied to clipboard

Form component should have a disabled prop, which disables submission even with the Enter key

Open davidtheclark opened this issue 6 years ago • 0 comments

We recently had a bug where we disabled the FormSubmit component (using its disabled prop), but the Form could still be submitted with the Enter key. To avoid this situation, there should be a disabled prop on the Form component, which we could have set to true.

(In the meantime, the workaround is to do nothing in the handleFormData callback when the form should be disabled.)

davidtheclark avatar Jan 02 '20 17:01 davidtheclark