Instead of setting it to $viewValue, I think this should be using the $modelValue.