-
-
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
AutocompleteInput pop-up after choice is selected #2428
Comments
Confirmed. Weird bug. |
fixes #2428 autosuggest toggle problem
Hello @Ken-Lim and @fzaninotto, Little note : The ReferenceInput is outside a Create/Edit page so using a SimpleForm and overriding the form prop render() {
const { deviceId } = this.state;
return (
<SimpleForm form="replace-device-form" resource="Device" save={this.handleSubmit}>
<ReferenceInput
label="Test issue 2428"
source="deviceId"
reference="Device"
onChange={(event, deviceId) => console.log(`New deviceId ${deviceId}`)}
>
<AutocompleteInput optionText="identification" />
</ReferenceInput>
</SimpleForm>
)
} Any idea ? Upgrading to 9.4.2 has fixed the issue for you ? |
I upgraded to react-admin 2.4.0, which uses the react-autosuggest 9.4.2. |
i fixed this issue by adding focusInputOnSuggestionClick={false} props to the AutoSuggest component. |
reopening as the issue seems not fixed |
Forwarding message for example of the issue
|
This issue is not fixed. Steps to reproduce: Related code:
Other information: Environment
|
@fzaninotto |
Is there anything new on the ticket? the issue was resolved? Thanks |
Reopening this issue since it's not fixed as of the 2.8.2, we can reproduce the issue on the demo: There is also a few reports |
I forked the complete component because i needed lots of customisations in it, i solve this problem by adding focusInputOnSuggestionClick={false} prop to the Autosuggest component. |
PR are welcome :) |
Since version 2.5.0 you can pass props directly from the AutocompleteInput to the Autosuggest : 'Add ability to pass custom props to react-autosuggest from > (#2410) (AskseL)' |
Hello, Confirmed is still in the demo, try to search for customer and select it |
Yep, it's still open. Related to #3031 |
If I set
|
Fixed by #3031 |
What you were expecting:
After choice is selected, AutocompleteInput filled the textInput with selected choice
What happened instead:
After choice is selected, AutocompleteInput filled the textInput with selected choice then pop-up all the choices again
Steps to reproduce:
Please see the attached GIF for the issue
The text was updated successfully, but these errors were encountered: