Tanguy Krotoff

Results 84 comments of Tanguy Krotoff

Hi, Try to pass the fields you want to validate to `validateFieldsWithoutFeedback()` instead of calling `validateForm()` without arguments. We could do in the future: - remove the checks in production...

Use case: For a captcha with an image, an input and a button to check the entered matches the image. The input is required. - We want to turn the...

> show some helper text on an unvalidated field and then swap it out for FieldFeedback error messages when necessary. Is there an easy way to do that? Good question....

For the moment, you have to handle this yourself. Something like: ```JSX state = { fieldUntouched: true }; handleChange(e) { this.setState({fieldUntouched: false}); } handleReset() { this.setState({fieldUntouched: true}); } // Displayed...

Difficult to help without a demo. If you want to re-validate all fields, use `validateFields()`. `validateForm()` _"validates only all non-dirty fields"_ I guess you are using React classes. Follow this...

See https://github.com/BerkeleyTrue/warning, used by Material-UI: https://david-dm.org/mui-org/material-ui?path=packages%2Fmaterial-ui

The real issue is here: https://github.com/tkrotoff/react-form-with-constraints/blob/v0.12.0/packages/react-form-with-constraints/src/FormWithConstraints.tsx#L113 The console.assert() here can make user tests fail.

See 340db7341bf25fb5b7ff987b81c2e9fb006200d7, packaged with v0.13.0

The problem still exists with v0.14, to solve it I've modified my code to this: ``` HTML ``` ``` Dart @Component( selector: 'pages', publishAs: 'ctrl', templateUrl: '...', exportExpressions: const ['rank']...