Value Converter Update OnBlur


#1

I have a value converter attached to an INPUT control. I also have a MaskEdit control attached to the input.

I am running into a problem where the ValueConveter is updating the value in real-time, affecting the masking operations.

Question: How can I tell the value converter to update OnBlur, so that it allows the MASK editor to do it’s thing, and only when we are done editing does the value converter attempt to convert the data?


#2

Value converter doesn’t decide when to convert, try using binding behavior to change update trigger.

<input value.bind="mask | yourConverter & updateTrigger:'blur'>


#3

Yeah I tried that… unfortunately Aurelia-Mask (https://github.com/ariovistus/aurelia-mask) doesn’t support the binding behavior… something about not support two-way binding