Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
If any item wants to be deleted from Key Value pairs , Always the last one will be deleted :
So in App_Plugins -> KeyValueEditor -> "KeyValueEditorController.js" we should change the delete code as below:
$scope.deleteKeyValue = function (item) { var index = $scope.model.value.indexOf(item); $scope.model.value.splice(index, 1); };
at the moment ,it is
$scope.deleteKeyValue = function (item) { $scope.model.value.pop(item); };
Thanks Sara for sharing this fix!
I came across this exact issue today and was able to fix it quickly using your suggested fix.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Delete an Item from Key Value List
If any item wants to be deleted from Key Value pairs , Always the last one will be deleted :
So in App_Plugins -> KeyValueEditor -> "KeyValueEditorController.js" we should change the delete code as below:
at the moment ,it is
Thanks Sara for sharing this fix!
I came across this exact issue today and was able to fix it quickly using your suggested fix.
is working on a reply...