@cloudcannon/editable-regions 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -271,7 +271,7 @@ export default class EditableComponent extends Editable {
271
271
  // The existing element is currently focused or is already the same as the rendered element
272
272
  if (
273
273
  (hasEditableText(targetChild) && targetChild.editable.focused) ||
274
- targetChild?.isEqualNode(renderChild)
274
+ targetChild?.nodeName === renderChild.nodeName
275
275
  ) {
276
276
  this.updateEditable(renderChild, targetChild);
277
277
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcannon/editable-regions",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "description": "Visual Editing for the CloudCannon CMS.",
6
6
  "keywords": [
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@biomejs/biome": "2.4.4",
57
- "@cloudcannon/javascript-api": "0.0.10",
57
+ "@cloudcannon/javascript-api": "0.0.12",
58
58
  "@types/js-beautify": "1.14.3",
59
59
  "@types/react": "19.2.8",
60
60
  "@types/react-dom": "18.3.1",