Skip to content

Validation error messages not using ui:title in anyOf option field errors with external validation #4368

Closed
@TheOneTheOnlyJJ

Description

Prerequisites

What theme are you using?

mui

Version

5.22.3

Current Behavior

Error messages do not use their ui:title property if they come from the option of an anyOf block (when using external form validation), contradicting #3337.

Expected Behavior

Error messages do use their ui:title property if they come from the option of an anyOf block (when using external form validation), as stated in #3337.

Steps To Reproduce

See here: https://codesandbox.io/p/sandbox/63w9vm (Codesandbox)

Environment

- OS: Windows 10
- Node: 20.19.0
- npm: 10.8.2

Anything else?

image

Here, both optionA1stField and optionA2ndField have ui:title defined in their UiSchema; as you can see, their raw property name is used instead of the titles.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions