""" <Autocomplete disablePortal id="combo-box-demo" placeholder="+971" options={isdCodesList} isOptionEqualToValue={(option: any, value: any) => option.label === value.label} renderInput={(params) => ( <TextField {...params} {...register('isdCode', { required: true, })} /> )} onChange={(e, newVal: any) => { console.log('newVal', newVal); setPhoneNumber(newVal?.label); }} /> """ Sugeest you are a react developer expert. I want to show country name instead of country code. you can make the changes you need. please update the code and return.
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter