diff --git a/packages/client/lib/client.js b/packages/client/lib/client.js index 0caeaf59..a735a438 100644 --- a/packages/client/lib/client.js +++ b/packages/client/lib/client.js @@ -788,9 +788,10 @@ function entryRename(view, entry, wasEmpty, callback) { let canSubmit = validFilename(linkText, droppy.platform); entry.addClass("editing"); - // Add inline element - const renamer = $(``).insertAfter(link); + // Add inline element + const renamer = $('').val(linkText).attr("placeholder", linkText); + renamer.insertAfter(link); + renamer.off("input").on("input", function() { const input = this.value; const valid = validFilename(input, droppy.platform);