From 3956cfd0832731e7f6125cada439b87687699425 Mon Sep 17 00:00:00 2001 From: zhe-he Date: Mon, 23 Sep 2024 11:36:21 +0800 Subject: [PATCH] fix(textarea): A form field element has neither an id nor a name attribute. --- CHANGELOG.md | 1 + src/shapes/IText/ITextKeyBehavior.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c566f7ac8b7..b4e00de7b3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ## [6.4.2] +- Fix(Textarea): A form field element has neither an id nor a name attribute. - Fix(): path parsing performance [#10123](https://github.com/fabricjs/fabric.js/pull/10123) ## [6.4.1] diff --git a/src/shapes/IText/ITextKeyBehavior.ts b/src/shapes/IText/ITextKeyBehavior.ts index 4c2ed01dd79..42daf3017d7 100644 --- a/src/shapes/IText/ITextKeyBehavior.ts +++ b/src/shapes/IText/ITextKeyBehavior.ts @@ -72,6 +72,7 @@ export abstract class ITextKeyBehavior< spellcheck: 'false', 'data-fabric': 'textarea', wrap: 'off', + name: "fabricTextarea", }).map(([attribute, value]) => textarea.setAttribute(attribute, value)); const { top, left, fontSize } = this._calcTextareaPosition(); // line-height: 1px; was removed from the style to fix this: