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

flag covers whole screen on firefox

Open Freundschaft opened this issue 3 years ago • 7 comments

works fine on chrome but on firefox the flag covers the entire screen and is way too big, anyone else see this issue on firefox?

Freundschaft avatar Nov 05 '21 00:11 Freundschaft

Same here

davext avatar Nov 05 '21 18:11 davext

Temporarily fixed it by adding

.MuiPhoneNumber-flagButton{
    max-width: 10px !important;
}

to my css file

davext avatar Nov 05 '21 19:11 davext

thanks, this should be fixed in a PR

Freundschaft avatar Nov 07 '21 22:11 Freundschaft

Is this library maintained? Can we expect fix of this and other issue in some near future? :) (just asking to know, my release is in few months, because otherwise I will have to migrate)

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

I found that setting the width to min-content helped avoid hard coding any values and !important s

.MuiPhoneNumber-flagButton {
    width: min-content;
}

mckelveygreg avatar Nov 12 '21 19:11 mckelveygreg

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)

viclafouch avatar Jun 06 '22 17:06 viclafouch