Skip to content

Suggestion for : activeCountryCode is not accessible anymore in V9 #509

@dylanFdvhuset

Description

@dylanFdvhuset

In vue-tel-input v8+, activeCountryCode was accessible and updatable through ref which was convenient to dynamically update the country code.

This is not possible anymore in V9 and there is no real alternative to this.

My suggestion would be to add a custom v-model like :

<script setup>
import {ref} from 'vue'
const activeCountryCode = ref('+1')
</script>

<template>
    <VueTelInput v-model:active-country-code="activeCountryCode" />
</template>

This way we have a 2 way flow for the country code and we can reset it as we please.

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