Validating event form close Kansas hotline adult chat
17-Dec-2020 21:37
Instead, the required field shows its error saying this field is required. I believe the on Blur event is firing and redux form handling the event but stopping it from propagating. This button does not have type="submit", just a button: fixed it, I do have this button within the form elements. I have the same problem -- validation runs on clicking cancel, and the cancel button occasionally requires two clicks to close the form.
If it is harmless, you might be able to remove a prevent Default() or stop Propigation() and make this a bit less fragile. I'm unable to save the value using your example above because the event.target is coming in as null.
Nothing is more annoying to a user than a dialog box with a laundry list of errors, and a form with as many red marks as a badly-written school paper is not far behind.
To prevent this, set up your field validation to only occur if field is not pristine: On a second thought, maybe skipping the validation on input type button is not always desired.
I recommend against relying on submission validation in a Windows Forms application.
Errors should be trapped sooner, as close to when they are entered as possible.
But I was also able to resolve the problem by putting the error message inside a I have similar issue when I double tapped on button to submit the form. Behavior: First tap triggered SVG, second triggered button with type 'submit'.
Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
in case extra validation like restricting validation to some of the controls only, that would be decided at the function calling level.