MCPcopy Create free account
hub / github.com/formkit/formkit / resetValue

Function resetValue

packages/core/src/node.ts:3071–3077  ·  view source on GitHub ↗

* Reset to the original value. * * @param node - A FormKitNode | FormKitNode * @param _context - A FormKitContext | FormKitContext * @param value - The value to reset to * * @internal

(
  node: FormKitNode,
  _context: FormKitContext,
  value?: unknown
)

Source from the content-addressed store, hash-verified

3069 * @internal
3070 */
3071function resetValue(
3072 node: FormKitNode,
3073 _context: FormKitContext,
3074 value?: unknown
3075) {
3076 return reset(node, value)
3077}
3078
3079/**
3080 * Sets errors on the node and optionally its children.

Callers

nothing calls this directly

Calls 1

resetFunction · 0.90

Tested by

no test coverage detected