From fd5eca229ecb27099066affe7589805e93abe2d2 Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Wed, 24 Feb 2021 14:21:15 +0530 Subject: [PATCH] #77 button issue fixed --- src/svgcanvas/svg-exec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svgcanvas/svg-exec.js b/src/svgcanvas/svg-exec.js index 0ae78051..d7f78bbc 100644 --- a/src/svgcanvas/svg-exec.js +++ b/src/svgcanvas/svg-exec.js @@ -75,7 +75,7 @@ export const svgCanvasToString = function () { const nakedSvgs = []; // Unwrap gsvg if it has no special attributes (only id and style) - $(svgContext_.getSVGContent()).find('g:data(gsvg)').each(function () { + $(svgContext_.getSVGContent()).find('g[data-gsvg]').each(function () { const attrs = this.attributes; let len = attrs.length; for (let i = 0; i < len; i++) {