material-ui-phone-number
material-ui-phone-number copied to clipboard
Ability to clear the input (remove +)
Hello, I have phone number as not-required input. I am forced to have defaultCountry prop, as without it component is crashing. But I want user, after playing with this field, to be able to remove the phone number and leave empty. To know that he is saving form without phone number. I am unable to remove leading +.
Is there possibility to fix this? Thank you.
I would also like to know how to do this because at the moment its saving as + or +44 for example in the database. I can't figure out a way of allowing the user to have an empty value.
Is there any update on this? Similar issue as this field being not required.
I still have not heard anything and this is really an annoying issue. Any news?
I am using hack by adding few conditions in onChange function by removing plus icon when field is cleared. That's the only option till we get a fix
I am using hack by adding few conditions in onChange function by removing plus icon when field is cleared. That's the only option till we get a fix
Can you share us your code to see your hack?
Same problem for us. Hope this gets fixed.