From b5d3b868c3e94ce0e4ba13ab8ee54247a19be5cd Mon Sep 17 00:00:00 2001 From: Mark Hughes Date: Mon, 29 Jan 2024 21:16:13 +1100 Subject: [PATCH] fix: prevent special char. breaking --- packages/client/lib/client.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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);