fix(ui,richtext-*): path from context should always have precedence over path from props, even if it's an empty string (#6782)
This commit is contained in:
@@ -106,7 +106,7 @@ const RichTextField: React.FC<
|
||||
|
||||
const { formInitializing, initialValue, path, schemaPath, setValue, showError, value } = useField(
|
||||
{
|
||||
path: pathFromContext || pathFromProps || name,
|
||||
path: pathFromContext ?? pathFromProps ?? name,
|
||||
validate: memoizedValidate,
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user