Skip to content
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

Post your question in discussions #507

Open
uNmAnNeR opened this issue Jul 5, 2021 · 8 comments
Open

Post your question in discussions #507

uNmAnNeR opened this issue Jul 5, 2021 · 8 comments

Comments

@uNmAnNeR
Copy link
Owner

uNmAnNeR commented Jul 5, 2021

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 uNmAnNeR pinned this issue Jul 5, 2021
@bnuel
Copy link

bnuel commented Mar 30, 2022

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.

@uNmAnNeR
Copy link
Owner Author

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

@mirjalol-norkulov
Copy link

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.

@pzi
Copy link

pzi commented May 4, 2022

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

@sonali395
Copy link

sonali395 commented Jun 28, 2022

Please check the below issue #692 @uNmAnNeR

@liupeng3050

This comment was marked as off-topic.

@Anjana125
Copy link

Anjana125 commented Dec 12, 2023

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

@sajasbana
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants