-
-
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
crudGetMatching does not working with <AutocompleteInput /> #3098
Comments
Thanks for reporting this. If you are able to illustrate the bug or feature request with an example, please provide a sample application via one of the following means:
|
Thanks but a codesandbox would really help us to debug this |
update: in despair, I deleted my component and rewrote it again using the code from the sandbox. to play in the sandbox, install react-admin 2.8.4 (I've updated React and React-dom ) and replace |
@djhi, enough information? |
Ok, I reproduced on the CodeSandbox, so I confirm the bug. To be explicit:
const PostReferenceInput = props => (
<Fragment>
<ReferenceInput {...props}>
- <SelectInput optionText="title" />
+ <AutocompleteInput optionText="title" />
</ReferenceInput>
<PostQuickCreateButton />
{/* We use Field to get the current value of the `post_id` field */}
<Field
name="post_id"
component={({ input }) =>
input.value && <PostQuickPreviewButton id={input.value} />
}
/>
</Fragment>
);
This is the bug. |
Might be related to #3031 |
Not fixed by #3031, this one still exists in v3-alpha.3. |
Fixed by #3683 |
What you were expecting:
For my project, I used the Advanced Tutorials "Custom Forms and UI for related records". I expected that everything will work as a guide.
What happened instead:
Until a certain point, everything worked well. Then I noticed that after creating the record and trying to create another previous data is saved. I fixed it. Added call resetForm and reset (something one does not work)
Then I upgraded to 2.8.4 and noticed that the record created was set to the value of the redux-form, but not in </ ReferenceInput>. Perhaps this happened earlier than I installed 2.8.4, I noticed only now. In addition, after logout and login, the first time a user is created, he enters the list, and then stops.
Steps to reproduce:
Related code:
Other information:
Could this be related to the nested resource?
Environment
The text was updated successfully, but these errors were encountered: