| 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] |