material-uitextfieldmui-autocomplete

Textfield for autocomplete Material UI


How can we clear the text field for a autocomplete component automatically after a button click. I want to clear the textfield after every button click for a autocomplete ui component


Solution

  • I am not sure that I understood your question correctly. I forked the controlled example in documentation and changed a little bit for the question.

    Button clears the TextField. Here is my demo