-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tab label not change to red while one of it's input with source='post.title'(the source like x.y) is invalid #3695
Comments
Please follow the issue template |
@djhi please help me figure it out. it not support complex source for a input. |
Your codesandbox does not use the version of react-admin you specified in the issue template: it is based on the v3 alpha and not on Besides, using Please either provide a codesandbox with the version of react-admin you are actually using or correct your issue description |
@djhi thanks for help , my dev version is v2.9.1 and the codesandbox is v3 alpha. it's both not working.
|
Try upgrading to |
I cannot reproduce your issue on the official codesandbox (https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple) |
@djhi sorry ,but I can reproduce the issue through
|
Sorry, I read your description too quickly apparently. Confirmed |
cool , @djhi ,thanks. |
* next: Fix TabbedForm does not detect errors when source is a path Fixes marmelab#3695 Update CoreAdminRouter.tsx Fix failing test in Node 12 Add hooks to Reference list Add missing (double)quote in i18nProvider upgrade guide Add missing quote in i18nProvider upgrade guide Fix example for dispatch hook in upgrade guide useQuery/useQueryWithStore - fix loading state Welcome message should be visible on narrow screens
Hi @djhi , I had reinstalled react-admin at version of ^2.9.7. but this bug is still existed, what version can I use or waiting for 3.00 version release? |
The introduction of FormGroups in 3.12 (#5712) finally solves this properly. |
What you were expecting:
![image](https://user-images.githubusercontent.com/16397455/65012439-ec313a80-d949-11e9-83c4-79904c3adb77.png)
![image](https://user-images.githubusercontent.com/16397455/65012502-23075080-d94a-11e9-8629-98c2bc68b022.png)
tab label change to red while one of it's input with source='post.title' is invalid.
What happened instead:
tab label not change to red, once click save, you don't know where is invalid for a TabbedForm.
Steps to reproduce:
create a TabbedForm with FormTabs.
create some tabs.
have one input with source='post.title' and required.
switch to other tab , the tab have 'post.title' is not showing warning red label.
<TextInput source="post.title" validate={required()}/>
Related code:
https://codesandbox.io/s/simple-ttj4i?fontsize=14
Environment:
React-admin version: 2.9.1 and v3 alpha
React version: 16.8.6
Browser: Chrome
The text was updated successfully, but these errors were encountered: