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

flag not visible in Safari

Open david-vendel opened this issue 3 years ago • 6 comments

Country flag is not visible in Safari

Screenshot 2021-11-08 at 10 56 48

david-vendel avatar Nov 08 '21 09:11 david-vendel

I have the same problem with Chrome, Inspect Browser and Safari on iphone(iOS v15.0.1, iPhone 13 Pro).

isaacwuerth avatar Nov 08 '21 19:11 isaacwuerth

I am having this issue on iPhone as well (both Safari and Chrome).

n8sabes avatar Dec 19 '21 19:12 n8sabes

Hello all, I forked this library, fix Firefox and Safari bug (and plan to fix other issues and rewrite to fn component) and published it to npm as material-ui-phone-number-2

https://github.com/justdvl/material-ui-phone-number-2 https://www.npmjs.com/package/material-ui-phone-number-2

I recommend everyone who needs to use this library, but working version, to make a simple switch. I will also actively maintain this version 2 library.

david-vendel avatar Jan 26 '22 22:01 david-vendel

Or another library : https://www.npmjs.com/package/mui-tel-input (with phone validation available) React 17/18 supported with MUI V5

viclafouch avatar Jun 06 '22 17:06 viclafouch

For me the fix was finding where the SVG was rendered, and adding overflow: visible and then setting the height on the svg.

JadeJDoucet avatar Aug 11 '22 18:08 JadeJDoucet

<MuiPhoneNumber {...props} sx={{ '& svg': { height: '1em', }, }}

i added above sx prop to MuiPhoneNumber component and it is resolved.

yasincelebi avatar Aug 25 '22 09:08 yasincelebi