From ecdb8932864ced64c9969fe351b492cabdfd10da Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Wed, 8 Dec 2021 23:01:59 +0530 Subject: [PATCH] fix: copy to clipboard strips off newlines input element isn't suitable for this hack, switch to textarea for supporting newlines in text to be copied. --- frappe/public/js/frappe/utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/utils/utils.js b/frappe/public/js/frappe/utils/utils.js index 5f546c22da..47aba903b9 100644 --- a/frappe/public/js/frappe/utils/utils.js +++ b/frappe/public/js/frappe/utils/utils.js @@ -957,7 +957,7 @@ Object.assign(frappe.utils, { return decoded; }, copy_to_clipboard(string) { - let input = $(""); + let input = $("