material-ui-phone-number icon indicating copy to clipboard operation
material-ui-phone-number copied to clipboard

Dropdown way too long and slow

Open alvamanu opened this issue 5 years ago • 6 comments

I wish the dropdown to be simpler. The country list is enormous and it takes some time to fully display. I'm thinking you have all the options in dropdown because you want to differentiate between Canada country codes and US country codes. However, I think you should place just one instance of United States and one instance of Canada and let the user decide what area code to put, then according to the area code typed in, then change the flag. Also, if you do select an area code from the dropdown, the autoformatting doesn't work. So essentially selecting country code + area code from the list doesn't work. The plugin looks very promising though. Thank you for this. 💪

alvamanu avatar Jan 04 '20 01:01 alvamanu

disableAreaCodes={true} will take care of it

sahanaravi avatar Jan 06 '20 13:01 sahanaravi

Cause it renders all 200 items at once Need to make that list virtualized

kybarg avatar Jan 14 '20 11:01 kybarg

That would be great to give developer ability to override rendering of that list entirely. That way We can even change country flags to the ones that we want (IDK, maybe SVG ones that are already used on same page, or other CSS sprite instead of having this low resolution ones).

What you think?

p.s. if there is already a way to do it then please share a link or snippet.

davityavryan avatar Jan 22 '20 13:01 davityavryan

@sahanaravi Thank you!!

vladcom avatar Aug 18 '20 07:08 vladcom

Even with disableAreaCodes={true}, there is still a small delay every time the list is opened.

nextglabs avatar Mar 20 '21 15:03 nextglabs

Is anyone willing to share the styles for the dropdown menu (with smaller flag and dropdown) as shown in the README? I was expecting that UI to be the default since it is posted up there. Thank you.

aaron-ang avatar Mar 13 '22 18:03 aaron-ang