Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

<RichTextInput> doesn't display validation errors #1

Open
fzaninotto opened this issue Jan 9, 2017 · 7 comments
Open

<RichTextInput> doesn't display validation errors #1

fzaninotto opened this issue Jan 9, 2017 · 7 comments

Comments

@fzaninotto
Copy link
Member

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
Copy link

avmak commented Apr 11, 2017

Hi! I have the same problem.

@xperali
Copy link

xperali commented May 15, 2017

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

@L-Luciano
Copy link

Any news about the display of validation errors ?

@ashkart
Copy link

ashkart commented Jun 10, 2018

I just met this bug too.

@fzaninotto
Copy link
Member Author

This will be fixed in react-admin 2.1.0 (cf marmelab/react-admin#1916).

@djhi
Copy link
Contributor

djhi commented Jun 15, 2018

Why 2.1.0 and not 2.0.4 ?

@fzaninotto
Copy link
Member Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants