score:0

if you want to show the value of the textfield i have inserted the following onchange={e=>changehandler(e.target.value)}

// in hooks area
const changehandler = value => {
    console.log(value); // value should be here
}

  <autocomplete
      id="combo-box-demo"
      options={top100films}
      getoptionlabel={option => option.title}
      style={{ width: 300 }}
      renderinput={params => (
        <textfield onchange={e=>changehandler(e.target.value)} {...params} label="combo box" variant="outlined" fullwidth />
      )}
    />

score:1

answer for your question is here :

usage of onchange with autocomplete material ui

you should use onchange properly. the value lays on the second parameter of the callback function.


Related Query

More Query from same tag