You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ The `restoreResumableFields(id: string, options)` function supports optional con
61
61
The `persistResumableFields(id: string, options)` function supports optional configurations:
62
62
63
63
*`storage:` - [`Storage`][] instance (defaults to [`window.sessionStorage`][])
64
-
*`storageFilter:` - `(field: HTMLInputElement | HTMLTextAreaElement) => boolean` predicate to determine whether or not to store a field (defaults to `(field) => field.value !== field.defaultValue`)
64
+
*`storageFilter:` - `(field: HTMLInputElement | HTMLTextAreaElement) => boolean` predicate to determine whether or not to store a field (defaults to `(field) => field.checked !== field.defaultChecked)` for checkbox and radio buttons, `(field) => field.value !== field.defaultValue` otherwise)
65
65
*`keyPrefix:` - `string` prepended onto the storage key (defaults to `"session-resume"`)
66
66
*`scope:` - `ParentNode` used to query field elements (defaults to `document`)
67
67
*`selector:` - `string` used to query field elements (defaults to `".js-session-resumable"`)
0 commit comments