I use an Autocomplete component in a react js app to add and delete categories. To add a category I use a dialog.
When I press OK button in dialog box I manage to add the category in database and the category name appear in the inputtext of Autocomplete component of material ui. But when I press tab to move to the next text input in form, the text from textinput of Autocomplete component dissapear. Can you sugget me a solution that categorry name to persist in textinput of Autocomplete component when I press tab?
Victor Arodu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.