From 9cea8d82c2aaf2df9fc21c3c9f863790e8d690fd Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 2 Feb 2017 11:33:37 +0100 Subject: [PATCH] Fix left-click disabled in Edge after renaming a file --- www/drive/file.css | 2 +- www/drive/file.less | 2 +- www/drive/main.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/drive/file.css b/www/drive/file.css index 4ac44552f..662ac6616 100644 --- a/www/drive/file.css +++ b/www/drive/file.css @@ -202,7 +202,7 @@ span.fa-folder-open { float: right; } #content li:not(.header) *:not(input) { - pointer-events: none; + /*pointer-events: none;*/ } #content li:not(.header):hover .name { text-decoration: underline; diff --git a/www/drive/file.less b/www/drive/file.less index fd18f54f3..7b6828fa8 100644 --- a/www/drive/file.less +++ b/www/drive/file.less @@ -244,7 +244,7 @@ span { li { &:not(.header) { *:not(input) { - pointer-events: none; + /*pointer-events: none;*/ } &:hover { .name { diff --git a/www/drive/main.js b/www/drive/main.js index 49f1a32fe..ad8852028 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -300,10 +300,10 @@ define([ }); $input.on('keyup', function (e) { if (e.which === 13) { + removeInput(); filesOp.renameElement(path, $input.val(), function () { refresh(); }); - removeInput(); } }); //$element.parent().append($input);