imaskjs
imaskjs copied to clipboard
Post your question in discussions
Create new Issue only for bug or feature request.
If you have a question about how to use imask
:
- check the guide
- check answers on stackoverflow.com
- ask question in discussions
- ask russian community in Telegram
if you found a bug please check existing issues first and if it's not there yet create an issue.
If you think that documentation could be improved then feel free to create a PR. It's even easier then creating an issue.
I am using angular-imask: 6.0.5 with angular 13 There is date input which changes when user enters value using imask, it used to work before with angular 9 version, after upgrading to angular 13, i am getting the below error when user edits/enters value imask input field
Not sure what is causing this issue, any suggestion would be helpful.
@bnuel i moved your issue here #650 . You have to provide link to sandbox for me to run and reproduce it. Otherwise it just will be closed soon. This comment will be removed as well.
How to make a fixed part to be shown always. Currently fixed part of the mask is only shown when I type something in the input.
@mirjalol-norkulov How to make a fixed part to be shown always. Currently fixed part of the mask is only shown when I type something in the input.
tried the overwrite
option?
Please check the below issue https://github.com/uNmAnNeR/imaskjs/issues/692 @uNmAnNeR
IME Hiragana,Fixed number,input number,The original content is deleted last one digit
NOTE: which was working fine in Angular 15 and Imask version 4.1.5 can anybody help on the below issue ?? Angular version : 16 "angular-imask": "7.1.3", "imask": "7.1.3", "moment": "2.29.4"
Code: export class MaskBuilder { static buildDate({pattern = 'YYYY/MM/DD', minYear = TODAY.year()} = {}) { return ({ mask: pattern, lazy: true, blocks: { YY: { mask: IMask.MaskedRange, from: minYear - 2000, to: 99 },
YYYY: {
mask: IMask.MaskedRange,
from: minYear,
to: 2100
},
DD: {
mask: IMask.MaskedRange,
from: 1,
to: 31
},
MM: {
mask: IMask.MaskedRange,
from: 1,
to: 12
},
MMM: {
mask: IMask.MaskedEnum,
enum: moment.monthsShort()
}
}
});
}
Give below error and the mask is already defined as part of code
Thanks
Hi dears, I tried to use a function mask like the example in your website: IMask(element, { mask: value => /^\d*$/.test(value) && value.split('').every((ch, i) => { const prevCh = value[i-1]; return !prevCh || prevCh < ch; }) })
my issue that user input is not formated. I want it also to be formatted like '000 000 000'
how do achieve that?