react-intl-tel-input icon indicating copy to clipboard operation
react-intl-tel-input copied to clipboard

autoPlaceholder props doesn't work anymore

Open firestar300 opened this issue 6 years ago • 0 comments

Hello,

autoPlaceholder props doesn't work anymore on [email protected]. Placeholder is empty.

Expected Behavior

field placeholder should automatically display phone number format.

Current Behavior

<IntlTelInput
    defaultCountry=""
    fieldId="phonenumber"
    fieldName="phonenumber"
    inputClassName={`form__field ${className}`}
    autoPlaceholder={true}
    onPhoneNumberChange={(valid, phone, country) => {
        this.checkField(phone, country)
    }}
/>

Possible Solution

I downgraded the package to the version 7.1.1 and it works as expected.

Environment

v8.0.2

Maybe this feature has been removed on major version 8 but it still in the "documentation".

firestar300 avatar Apr 21 '20 21:04 firestar300