marmelab / aor-rich-text-input

<RichTextInput> component for admin-on-rest, useful for editing HTML code in admin GUIs
MIT License
23 stars 25 forks source link

<RichTextInput> doesn't display validation errors #1

Open fzaninotto opened 7 years ago

fzaninotto commented 7 years ago

With the following edition form:

export const PostEdit = (props) => (
    <Edit title={<PostTitle />} {...props}>
        <DisabledInput label="Id" source="id" />
        <RichTextInput source="body" validation={{ required: true }} />
    </Edit>
);

It's impossible to edit a post with no body - and there are no explanations.

Ported from https://github.com/marmelab/admin-on-rest/issues/207

avmak commented 7 years ago

Hi! I have the same problem.

xperali commented 7 years ago

Hi, default value when RichTextInput is empty is always : <p><br></p> , did you find any workaround for this??

L-Luciano commented 6 years ago

Any news about the display of validation errors ?

ashkart commented 6 years ago

I just met this bug too.

fzaninotto commented 6 years ago

This will be fixed in react-admin 2.1.0 (cf https://github.com/marmelab/react-admin/pull/1916).

djhi commented 6 years ago

Why 2.1.0 and not 2.0.4 ?

fzaninotto commented 6 years ago

because the ra-input-richtext was already modified in the next branch, and I didn't want to deal with a rebase. Besides, it can be considered as a new feature 🙈 .