Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit a5496d2

Browse files
authored
Merge pull request #1103 from jonbeller/edit-docs
Clarify difference between pristine and untouched
2 parents 1472b04 + 7e5590b commit a5496d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/api/actions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ A "blurred" field indicates that the field model control is not currently focuse
314314
## `actions.setPristine(model)`
315315
Returns an action that, when handled by a [`formReducer`](./formReducer), changes the `.pristine` state of the field model in the form to `true`.
316316
317-
The "pristine" state indicates that the user has not interacted with this field model yet.
317+
The "pristine" state indicates that the user has not changed the value of this model yet.
318318
319319
### Arguments
320320
- `model` _(String | Function)_: the model indicated as pristine
@@ -349,7 +349,7 @@ Returns an action that, when handled by a [`formReducer`](./formReducer), change
349349
## `actions.setTouched(model)`
350350
Returns an action that, when handled by a [`formReducer`](./formReducer), changes the `.touched` state of the field model in the form to `true`. It simultaneously sets the `.untouched` state to `false`.
351351

352-
The "touched" state indicates that this model has been interacted with.
352+
The "touched" state indicates that this model has been focused and then blurred.
353353

354354
### Arguments
355355
- `model`: (String) the model indicated as touched
@@ -361,7 +361,7 @@ The "touched" state indicates that this model has been interacted with.
361361
## `actions.setUntouched(model)`
362362
Returns an action that, when handled by a [`formReducer`](./formReducer), changes the `.touched` state to `false`.
363363

364-
An "untouched" field indicates that this model has not been interacted with yet.
364+
An "untouched" field indicates that this model has not been focused and blurred yet.
365365

366366
### Arguments
367367
- `model` _(String | Function)_: the model indicated as not touched (untouched)

0 commit comments

Comments
 (0)