imaskjs icon indicating copy to clipboard operation
imaskjs copied to clipboard

Post your question in discussions

Open uNmAnNeR opened this issue 3 years ago • 8 comments

Create new Issue only for bug or feature request.

If you have a question about how to use imask:

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.

uNmAnNeR avatar Jul 05 '21 09:07 uNmAnNeR

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

imask_error

Not sure what is causing this issue, any suggestion would be helpful.

bnuel avatar Mar 30 '22 02:03 bnuel

@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.

uNmAnNeR avatar Mar 30 '22 06:03 uNmAnNeR

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 avatar Apr 07 '22 08:04 mirjalol-norkulov

@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?

pzi avatar May 04 '22 07:05 pzi

Please check the below issue https://github.com/uNmAnNeR/imaskjs/issues/692 @uNmAnNeR

sonali395 avatar Jun 28 '22 07:06 sonali395

IME Hiragana,Fixed number,input number,The original content is deleted last one digit

liupeng3050 avatar Jan 11 '23 02:01 liupeng3050

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 image

image

Thanks

Anjana125 avatar Dec 12 '23 09:12 Anjana125

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?

sajasbana avatar Feb 06 '24 12:02 sajasbana