viclafouch / mui-tel-input

📌 A phone number input designed for MUI (Material ui) V6 built with libphonenumber-js
https://viclafouch.github.io/mui-tel-input
MIT License
160 stars 65 forks source link

Can't override InputProps.startAdornment #76

Closed TSinChen closed 1 year ago

TSinChen commented 1 year ago

Hi, I'm wondering if there is any chance to hide all flags or replace flags with other icons?

I set display:none to .MuiTelInput-ListItemIcon-flag and the flag in menuItem is hided, but I tried to set InputProps.startAdornment to override the default Icon in TextField, the sequence causes that I can't override startAdornment. (or other reasons that I don't know)

(source code)

image