aor-rich-text-input
aor-rich-text-input copied to clipboard
<RichTextInput> doesn't display validation errors
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
Hi! I have the same problem.
Hi, default value when RichTextInput is empty is always : <p><br></p>
, did you find any workaround for this??
Any news about the display of validation errors ?
I just met this bug too.
This will be fixed in react-admin 2.1.0 (cf https://github.com/marmelab/react-admin/pull/1916).
Why 2.1.0
and not 2.0.4
?
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 🙈 .