We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e216545 commit dbdad24Copy full SHA for dbdad24
packages/decap-cms-widget-object/src/ObjectControl.js
@@ -79,7 +79,12 @@ export default class ObjectControl extends React.Component {
79
if (field.get('widget') === 'hidden') return;
80
const name = field.get('name');
81
const control = this.childRefs[name];
82
- control?.validate?.();
+
83
+ if (control?.innerWrappedControl?.validate) {
84
+ control.innerWrappedControl.validate();
85
+ } else {
86
+ control?.validate?.();
87
+ }
88
});
89
};
90
0 commit comments