question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] How can I reference the value of the `AutoCompleteInput`?

See original GitHub issue

I have a few things I’d like to tweak for my use case, so I need access to the current value of the input. Ideally I’d have access to it so I could change the empty state to include a Spinner as I wait for options to be populated from an async call.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
IamMrandrewcommented, Feb 13, 2022

@SpencerKaiser Finally have time to try it. Simple code works. 😂 I thought I cannot access onChange on <AutoCompleteInput />.

onChange={(e) => {
      setValue(e.target.value);
}}
1reaction
anubra266commented, Feb 10, 2022

Please go ahead @SpencerKaiser . Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

The AutocompleteInput Component - React-admin - Marmelab
This lets you render a prompt to ask users about the new value. You can return either the new choice directly or a...
Read more >
React admin AutocompleteInput does not take value on first click
So, I solved this issue by creating a custom Autocomplete input for it. I couldn't figure out what was the problem with React...
Read more >
Can't clear AutocompleteInput · Issue #2641 · marmelab/react ...
node_modules/ra-core/esm/reducer/admin/references/possibleValues.js. ... So I can't get my 'abcd' by typing backspace if the current value ...
Read more >
HTML attribute: autocomplete - MDN Web Docs
The HTML autocomplete attribute lets web developers specify what if any permission the user agent has to provide automated assistance in filling out...
Read more >
HTML input autocomplete Attribute - W3Schools
The autocomplete attribute specifies whether or not an input field should have autocomplete enabled. Autocomplete allows the browser to predict the value. When ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found