Skip to content

Commit d8371c2

Browse files
committed
fix(material-renderers): Material cell should respect ValidationMode
Fix #2398
1 parent ef97e44 commit d8371c2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/material-renderers/src/complex/MaterialTableControl.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import {
4747
import {
4848
ArrayLayoutProps,
4949
ControlElement,
50-
errorsAt,
50+
errorAt,
5151
formatErrorMessage,
5252
JsonSchema,
5353
Paths,
@@ -177,11 +177,10 @@ const ctxToNonEmptyCellProps = (
177177
(ownProps.schema.type === 'object' ? '.' + ownProps.propName : '');
178178
const errors = formatErrorMessage(
179179
union(
180-
errorsAt(
180+
errorAt(
181181
path,
182-
ownProps.schema,
183-
(p) => p === path
184-
)(ctx.core.errors).map((error: ErrorObject) => error.message)
182+
ownProps.schema
183+
)(ctx.core).map((error: ErrorObject) => error.message)
185184
)
186185
);
187186
return {

0 commit comments

Comments
 (0)