Closed brunobottazzini closed 4 years ago
Update: I was able to force the refresh by adding
$("#editableNumber").text($scope.kgScorte).trigger('change');
However, the $parent.$data model does not update. So when we click in the number to update it shows the previous selected updated number. It works as half solution.
The documentation says you need to return true in order for the local model to be updated. Did you try that? http://vitalets.github.io/angular-xeditable/#onbeforesave
Hi @ckosloski,
Yes I put the 'return true;' but still the local model is not updated.
Do you have code you can post or an example in JSFiddle (or elsewhere) I can look at/
@ckosloski unfortunately I cannot provide you the code because I left the company I was working with.
I think you can close this issue if you want it
@eugef please close
Hello I am having an issue with the version 0.9.
To update the kgScorte we use:
However, it is not working anymore after onbeforesave
The refreshValues works fine. But I need to refresh a second time it does not work at all. It remains with the old value.
Do you know perhaps a way to update it manually? I took a look at this issue: https://github.com/vitalets/angular-xeditable/issues/130
but none of the answers worked for me unfortunately.