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.

AutoCompleteCreatable is shown on empty input

See original GitHub issue

When AutoCompleteCreatable is set with openOnFocus or suggestWhenEmpty the AutoCompleteCreatable is shown “empty”

{({ value }) => <span>Add {value} to List</span>}

It’s not really empty but value is, so I will end with an item called Add to List

Also I noticed that if the list have an option called Apple for example, it won’t be filtered when the input is Apple as well

image

I think this stop to working recently

Reproduction https://codesandbox.io/s/react-hook-form-v7-controller-forked-rb4sk?file=/src/Chakra.js

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
anubra266commented, Aug 2, 2021

Fixed in v4.3.3

0reactions
allcontributors[bot]commented, Aug 2, 2021

@anubra266

I’ve put up a pull request to add @gepd! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Material UI Autocomplete default value of empty string
When passing the default value of empty string to the Autocomplete component, it throws a console warning that the value empty string is...
Read more >
[Autocomplete] Clear button does not disappear when the ...
The clear button should not be displayed if the input is empty. Steps to Reproduce. Steps: Create a Autocomplete component with freeSolo bool ......
Read more >
Autocomplete API - Material UI - MUI
Name Type Default options * array renderInput * func autoComplete bool false
Read more >
How To Turn Off Autocomplete for Input - W3Schools
Learn how to disable autocomplete of an input field. ... Tip: Go to How TO - Autocomplete to learn how to create your...
Read more >
<input>: The Input (Form Input) element - HTML
The <input> HTML element is used to create interactive controls for ... displaying the value of the value attribute, empty by default.
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