-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InputMask | Prefix with number +9 #14833
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Comments
cetincakiroglu
added
the
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
label
Feb 19, 2024
github-actions
bot
added
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Feb 19, 2024
But when we focus on the input and enter a number we should see the prefix "+998" instead we see "+888". It's a different phone code |
Hi, This issue also happens in PrimeVue and PrimeReact. Because of that, we'll revisit and discuss this issue in 17.12.0 milestone next week with the team. |
cetincakiroglu
removed
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Mar 14, 2024
You can use InputGroup as a solution, since the prefix is meant to be static. More about InputGroup <script setup>
import InputGroup from 'primevue/inputgroup'
import InputGroupAddon from 'primevue/inputgroupaddon'
import InputMask from 'primevue/inputmask'
import { ref } from 'vue';
const phoneNumber = ref('');
</script>
<template>
<InputGroup>
<InputGroupAddon>+998</InputGroupAddon>
<InputMask
v-model="phoneNumber"
mask="(99) 999-99-99"
placeholder="(xx) xxx-xx-xx"
/>
</InputGroup>
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
See discussion: https://github.com/orgs/primefaces/discussions/1202
Reproducer: https://stackblitz.com/edit/acnz1y?file=src%2Fapp%2Fdemo%2Finput-mask-basic-demo.html
The text was updated successfully, but these errors were encountered: