I need help figuring out how to access the value of a Textfield
after clicking on the icon within the InputAdornment
. Initially, everything seemed to be working using OnChange
, but now I'm receiving an output of undefined
<Textfield
id="search"
label="SEARCH"
InputProps={{
endAdornment:
<InputAdornment position="end">
<FontAwesomeIcon icon={faSearch} onClick={(e) =>console.log(e.target.value)} />.
</InputAdornment> )
}}
/>