p-inputMask doesn't clean itself when model value is set to "undefined" #937
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
There's this p-inputMask two-way binded to a "number" variable via [(ngModel)]. If this variable is set to "undefined" by some event, I expect to see this input empty. But the inputmask keeps displaying the last value.
I managed to hack a solution by copying the InputMask code to my project and intercepting the get/set of the component value, thus changing it's display value to '' when 'undefined' is informed in this property setter:
It worked for my case, but I don't think it's the best solution.
I'm using: angular "2.0.0", primeng": "1.0.0-beta.16", "jquery": "2.2.4", "jquery.inputmask": "3.3.3".
The text was updated successfully, but these errors were encountered: