ariovistus / aurelia-mask

port of ui-mask to aurelia
MIT License
7 stars 3 forks source link

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

Open egeigel opened 5 years ago

egeigel commented 5 years ago

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?

ariovistus commented 5 years ago

odd. what version of aurelia framework are you using?

egeigel commented 5 years ago

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

egeigel commented 5 years ago

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.

ariovistus commented 5 years ago

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?