@maif/react-forms 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,6 +68,6 @@ jobs:
68
68
  env:
69
69
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70
70
  REPO_OWNER: ${{ github.repository_owner }}
71
- REPO: daikoku
71
+ REPO: react-forms
72
72
  IGNORE_MILESTONE_NOT_FOUND: true
73
73
 
package/README.md CHANGED
@@ -92,6 +92,10 @@ export const Example = () => {
92
92
  - **help**: the text display hover a help button
93
93
  - **className**: you can customize classnames of field,
94
94
  - **style**: to styling a field, you can provide a json object with css
95
+ - **onChange**: a callback function to the value change.
96
+ ```javascript
97
+ ({rawValues, value, setValue}) => if (value.length) { setValue('entry', false) }
98
+ ```
95
99
  - **render**: a function to completely custom the rendering of form field
96
100
  ```javascript
97
101
  ({rawValues, value, onChange, error}) => <input type="text" className="is-invalid" value={value} onChange={e => onChange(e.target.value)} />
@@ -185,7 +189,7 @@ httpClient = {(url, method) => fetch(url, {
185
189
  }
186
190
  })}
187
191
  ```
188
- - **watch**: a boolean to activate the automatic log of form value. A function can be set up to override de default logger.
192
+ - **watch**: a boolean to activate the automatic log of form value. A function can be set up to override the default logger.
189
193
  - **autosubmit**: a boolean to activate the automatic run of the `onSubmit` form properties on every change of values.
190
194
  - **actions**: an object to parameter footer buttons key. By default just `submit` button is displayed.
191
195
  ```javascript