One challenge I am facing is with an input tag that utilizes v-mask for formatting a mobile number:
<input type="text" placeholder="Phone Number" id="phoneNumber" class="form-control"
v-model="numberAndCaptcha.phoneNumber" @keyup="onNumberChange" v-mask="mask"/>
mask:['###-###-####'] //defined as a data attribute
While this setup works well and the number gets formatted correctly as intended,
I have encountered an issue when trying to pre-populate the input with a number obtained from the backend upon reload.
The requirement is to mask the first six digits of the populated number, resulting in an input value like "******7890"
Unfortunately, due to restrictions within v-mask, the final input value only displays the last 4 digits of the pre-populated number since v-mask does not accept anything other than digits.
Is there a solution available to achieve the desired result on reload? Specifically, having a masked number that also complies with v-mask requirements?