marmelab / react-admin

A frontend Framework for single-page applications on top of REST/GraphQL APIs, using TypeScript, React and Material Design
http://marmelab.com/react-admin
MIT License
24.89k stars 5.24k forks source link

RichTextInput onBlur validation doesn't trigger #9265

Closed botjaeger closed 1 year ago

botjaeger commented 1 year ago

What you were expecting:

It should trigger a validation error when touched

What happened instead:

It does nothing

Steps to reproduce:

<SimpleForm mode='all' reValidateMode='onChange'>
    ...
    <CustomRichTextInput />
</SimpleForm >
function CustomRichTextInput({ ...props }) {
    return (
        <RichTextInput
            fullWidth
            toolbar={(
                <RichTextInputToolbar size='small'>
                    <FormatButtons size='small' />
                    <ListButtons size='small' />
                </RichTextInputToolbar>
            )}
            validate={required()}
            {...props}
        />
    );
}

Other information:

Environment

slax57 commented 1 year ago

Reproduced, thanks

DxVxDOD commented 1 year ago

Hi could I work on this ?

fzaninotto commented 1 year ago

@DxVxDOD There is already someone working on this (see the PR mentioned above your message).

DxVxDOD commented 1 year ago

Oh yeah... skipped my eye :)