Skip to content
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

ReferenceInput make new request only when the optionValue exists on SelectInput? #3205

Closed
Iliyass opened this issue May 9, 2019 · 1 comment

Comments

@Iliyass
Copy link

Iliyass commented May 9, 2019

(Note: I know there are a duplicate issue #2585 or Stackoverflow but I found no help)
What you were expecting:
No new request after selecting from SelectInput

What happened instead:
Once you selected an item from SelectInput a new Request issued

Steps to reproduce:
Here I created a codesandbox example, where I changed the tags AutocompleteArrayInput to SelectInput and ReferenceArrayInput to ReferenceInput to reproduce my issue, you will see that no request will be issued because the data provider only get the data from the data.js file, but you can see the helper text under SelectInput https://codesandbox.io/s/jvvq0y0095?fontsize=14

Environment

  • React-admin version: ^2.9.0
  • Last version that did not exhibit the issue (if applicable):
  • React version:16.8.6
  • Browser: Chrome
@fzaninotto
Copy link
Member

Duplicate of #3108

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

No branches or pull requests

2 participants