You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was testing a change to an item using the edit (modal) form.
If you change any field, the change is immediately shown in the list, behind the modal form (which will happen because both are bound to the same item model.
BUT if you click the cancel button to close the modal form, the change is still in the list which should not happen because the save button was not clicked.
I made this change in the controller cancel function and now the list re-displays the valid data.
You might want to implement this change or should I try to do it myself (I have never done that to someone else's code!)
$scope.cancel = function() {
//$scope.form = {};
//this will refresh the page without the changes
$scope.list();
}
The text was updated successfully, but these errors were encountered:
I was testing a change to an item using the edit (modal) form.
If you change any field, the change is immediately shown in the list, behind the modal form (which will happen because both are bound to the same item model.
BUT if you click the cancel button to close the modal form, the change is still in the list which should not happen because the save button was not clicked.
I made this change in the controller cancel function and now the list re-displays the valid data.
You might want to implement this change or should I try to do it myself (I have never done that to someone else's code!)
The text was updated successfully, but these errors were encountered: