ariovistus/aurelia-mask

.attached method of masked-input.ts is not called on page render

Opened this issue · 4 comments

I am using aurelia-mask to mask an input element. However, it is not able to call the .attached() method of masked-input.ts so therefore the listeners are never added to the input element. When I explicitly call this.attached() at the end of the .bind() method of masked-input.ts then everything works. Has anyone else had issues with this, or know of a way to explicitly call the attached method from a different component?

odd. what version of aurelia framework are you using?

The aurelia-framework I am running is 1.1.5 and the aurelia-cli is 0.32.0

After some testing I have identified that it is not being called when I put the input element (that has the masked attribute) inside of a div. I would think the attached method would still get called since it is being added to the DOM.

well, I tried with 1.1.5 and can't seem to duplicate. all my inputs are inside divs. can you post any more details?