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

Function getExplicitInheritedValue

packages/core/src/node.ts:2949–2961  ·  view source on GitHub ↗
(prop: string)

Source from the content-addressed store, hash-verified

2947): FormKitConfig {
2948 let node: FormKitNode | undefined = undefined
2949 const getExplicitInheritedValue = (prop: string) => {
2950 let currentParent = parent
2951 while (currentParent) {
2952 const parentValue = currentParent.config._t[prop]
2953 if (parentValue !== undefined) return parentValue
2954 currentParent = currentParent.parent
2955 }
2956 if (target.rootConfig) {
2957 const rootValue = target.rootConfig[prop]
2958 if (rootValue !== undefined) return rootValue
2959 }
2960 return undefined
2961 }
2962 return new Proxy(target, {
2963 get(...args) {
2964 const prop = args[1]

Callers 1

getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected