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

native selection doesn't set value for dropdown

Open jeromevvb opened this issue 5 years ago • 1 comments

Hello!

I'm using this component with native:true. I set "fr" as default country. I figured out that "Afghanisthan" is checked instead of "France" in the dropdown.

Screenshot 2019-12-31 at 9 31 59 AM Screenshot 2019-12-31 at 9 32 04 AM

What should i do? Did i forget something? Thanks a lot!

jeromevvb avatar Dec 31 '19 08:12 jeromevvb

@alexplumb valueprops is missing here https://github.com/alexplumb/material-ui-phone-number/blob/bfaaedc65167918ca57bc381fa6e089976186369/src/components/index.jsx#L634 => value={selectedCountry}

am i wrong?

jeromevvb avatar Jan 07 '20 10:01 jeromevvb