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.

[Autocomplete] freeSolo (tags) does not not allow enter the same value more then once

See original GitHub issue

In autocomplete with multiple values (tags), on the feeSolo version, if you try to insert the same value twice, the first value is deleted.

Current Behavior 😯

If I add tag and try to add it again it deletes the first one.

Expected Behavior 🤔

It should allow insert the same value many times.

Steps to Reproduce 🕹

https://material-ui.com/components/autocomplete/#multiple-values in the freeSolo version:

  1. add the tag aa
  2. try adding the tag aa again
  3. instead of adding it, it will delete the first aa tag

tags

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Jan 13, 2020

@m4theushw Awesome. Thank you for the help on this component 😃.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Autocomplete] freeSolo (tags) does not not allow enter the ...
In autocomplete with multiple values (tags), on the feeSolo version, if you try to insert the same value twice, the first value is...
Read more >
MUI Autocomplete multiple freesolo; how to get new values?
Everything is functioning, I can add items to the list (including new items), remove, etc.
Read more >
React Autocomplete component - Material UI - MUI
The autocomplete is a normal text input enhanced by a panel of suggested options. ... Also known as tags, the user is allowed...
Read more >
A Guide on Material UI AutoComplete in React - Refine Dev
The value state represents the value chosen by the user by clicking or pressing “Enter.” The input value represents the value displayed in...
Read more >
Material UI AutoComplete in React | by Arooj Khan - Medium
These states are controlled independently, and each one is isolated. However, the free solo state allows the user to enter any value. As...
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