From 1c6dc66ed144df7f47fdeb695b9b675f16faf99d Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 29 Jan 2018 16:06:56 +0000 Subject: [PATCH] prevent double calls to rename --- .../ide/file-tree/controllers/FileTreeEntityController.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/web/public/coffee/ide/file-tree/controllers/FileTreeEntityController.coffee b/services/web/public/coffee/ide/file-tree/controllers/FileTreeEntityController.coffee index e6573bbe57..55bf16a172 100644 --- a/services/web/public/coffee/ide/file-tree/controllers/FileTreeEntityController.coffee +++ b/services/web/public/coffee/ide/file-tree/controllers/FileTreeEntityController.coffee @@ -28,6 +28,9 @@ define [ invalidModalShowing = false $scope.finishRenaming = () -> + # avoid double events when blur and on-enter fire together + return if !$scope.entity.renaming + name = $scope.inputs.name if !name.match(new RegExp(ide.validFileRegex))