aor-rich-text-input icon indicating copy to clipboard operation
aor-rich-text-input copied to clipboard

<RichTextInput> doesn't display validation errors

Open fzaninotto opened this issue 8 years ago • 7 comments

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

fzaninotto avatar Jan 09 '17 22:01 fzaninotto

Hi! I have the same problem.

avmak avatar Apr 11 '17 10:04 avmak

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

xperali avatar May 15 '17 18:05 xperali

Any news about the display of validation errors ?

L-Luciano avatar Apr 16 '18 13:04 L-Luciano

I just met this bug too.

ashkart avatar Jun 10 '18 10:06 ashkart

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

fzaninotto avatar Jun 15 '18 16:06 fzaninotto

Why 2.1.0 and not 2.0.4 ?

djhi avatar Jun 15 '18 16:06 djhi

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 🙈 .

fzaninotto avatar Jun 19 '18 17:06 fzaninotto