* Set the configuration options of the node and it's subtree. * * @param node - A FormKitNode | FormKitNode * @param context - A FormKitContext | FormKitContext * * @internal
(node: FormKitNode, context: FormKitContext)
| 2641 | * @internal |
| 2642 | */ |
| 2643 | function resetConfig(node: FormKitNode, context: FormKitContext) { |
| 2644 | const parent = node.parent || undefined |
| 2645 | context.config = createConfig(node.config._t, parent) |
| 2646 | context.config._n = node |
| 2647 | node.walk((n) => n.resetConfig()) |
| 2648 | } |
| 2649 | |
| 2650 | /** |
| 2651 | * Adds a plugin to the node, its children, and executes it. |
nothing calls this directly
no test coverage detected