Text-mask: Using with `md-input` causes an error

Created on 6 Sep 2016  路  6Comments  路  Source: text-mask/text-mask

As mentioned in #179, using Material Design input, md-input, with Text Mask causes the following error

More than one custom value accessor matches form control with unspecified name attribute

@andyrue pointed out that the error is triggered by Angular 2 in this file after a call to this function.

angular2 bug i don't know how to fix it

Most helpful comment

I believe that issue doesn't occur anymore at @angular/[email protected]

At least using md-input-container !

All 6 comments

For reference, similar issue here: https://github.com/vaadin/angular2-polymer/issues/75

I don't believe there is a trivial solution here.

textMask and md-input are both custom ControlValueAccessors, which is forbidden because of (I guess) concurrency issues. I am unsure what a possible solution could be in this case...

I believe that issue doesn't occur anymore at @angular/[email protected]

At least using md-input-container !

@msafi : This issue should be closed as @juracy 馃憤 actually pointed to the solution, which is to use md-input-container and input.

Thanks folks, I'll close this one!

Has this issue resolve

Was this page helpful?
0 / 5 - 0 ratings

Related issues

douglasdtc picture douglasdtc  路  3Comments

msafi picture msafi  路  7Comments

lakhvir1994 picture lakhvir1994  路  5Comments

Sn3b picture Sn3b  路  6Comments

skube picture skube  路  3Comments