Skip to content

What is the correct configuration for phone number without country code? #271

@emredenizx

Description

@emredenizx

What I need to have input field with placeholder '(5__) --_' and let user write phone number without country code.
So I have the configuration as:

 <PhoneInput inputProps={{ name: 'mobileNumber', required: true, }} containerClass='ui input' country={'tr'} value={mobileNumber} onChange={(phone) => handlePhoneNumberInput({ phone },'mobileNumber')} placeholder='(5__) ___-__-__' disableDropdown jumpCursorToEnd={false} masks={{ tr: '(...) ...-..-..' }} countryCodeEditable={false} /> 

This configuration does not show the placeholder and only "+90" takes place in input field as placeholder. I can type the 10 digit rest of the number without problem next to '+90' but what is the exact configuration for showing placeholder as '(5__) --_' and let user type their 10 digit number without country code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions