diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/utils.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/utils.js b/src/utils/utils.js index 2438431..90ef548 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -135,8 +135,9 @@ export const writeDataToDom = (element, data, defaults = {}) => { } if (Object.keys(cloned).length) { - element.node.setAttribute('svgjs:data', JSON.stringify(cloned)) // see #428 + element.node.setAttribute('data-svgjs', JSON.stringify(cloned)) // see #428 } else { + element.node.removeAttribute('data-svgjs') element.node.removeAttribute('svgjs:data') } } |