Open maubin opened 9 years ago
The jsfiddle shows the unmaskedvalue? On which browser(s) are you testing?
Sorry I forgot to add some instruction for the fiddle. When the page load the value is fine, it's unmasked. But when you go in the input and type a value (and the binding is updated) the new value in the viewmodel is masked.
Removed: I realized I made a typo.
I realize I also made the same typo in my first fiddle. autounmask was missing a capital letter. I still have the issue in my project but cannot reproduce it in a jsfiddle yet. I'll try and make some more tests.
I have a view that has text input binded to a viewmodel with knockout. I noticed that when the viewmodel is updated by the knockout binding, the "autounmask" option is ignored. The value in the viewmodel will always contain the masked value.
Is this an issue and/or is there a workaround?
I made a jsfiddle that reproduce my issue. : http://jsfiddle.net/ak1r1bp1/1/
Thank you!