From 2f33c9d09a26872216a6b6ca1ad2b208fac1d868 Mon Sep 17 00:00:00 2001 From: psvoboda Date: Mon, 8 Apr 2024 08:21:32 +0200 Subject: [PATCH] nemazani parametru komponentu --- package-lock.json | 4 ++-- package.json | 2 +- packages/svgcanvas/core/event.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 15bd5b5fa..d90b046be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "svgedit", - "version": "7.3.4", + "version": "7.3.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "svgedit", - "version": "7.3.4", + "version": "7.3.7", "license": "(MIT AND Apache-2.0 AND ISC AND LGPL-3.0-or-later AND X11)", "workspaces": [ "packages/svgcanvas", diff --git a/package.json b/package.json index 0809378df..5f80da6f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "svgedit", - "version": "7.3.4", + "version": "7.3.7", "description": "Powerful SVG-Editor for your browser ", "main": "dist/Editor.js", "module": "dist/Editor.js", diff --git a/packages/svgcanvas/core/event.js b/packages/svgcanvas/core/event.js index 7e66fe6c8..25ff3a929 100644 --- a/packages/svgcanvas/core/event.js +++ b/packages/svgcanvas/core/event.js @@ -659,7 +659,7 @@ const mouseUpEvent = (evt) => { // Remove non-scaling stroke const elem = selectedElements[0] - if (elem) { + if (elem && elem.nodeName !== 'foreignObject') { elem.removeAttribute('style') walkTree(elem, (el) => { el.removeAttribute('style')