@blokkli/editor 2.0.0-alpha.26 → 2.0.0-alpha.28

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.
@@ -12,6 +12,13 @@ export function useBlockRegistration(dom, uuid) {
12
12
  const blokkliDraggable = instance?.refs.blokkliDraggable;
13
13
  if (blokkliDraggable instanceof HTMLElement) {
14
14
  return blokkliDraggable;
15
+ } else if (
16
+ // The ref is another component. Try to get the root element.
17
+ blokkliDraggable !== null && typeof blokkliDraggable === "object" && "$el" in blokkliDraggable
18
+ ) {
19
+ if (blokkliDraggable.$el instanceof HTMLElement) {
20
+ return blokkliDraggable.$el;
21
+ }
15
22
  }
16
23
  const rootElement2 = instance?.proxy?.$el;
17
24
  if (rootElement2 instanceof HTMLElement) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blokkli/editor",
3
- "version": "2.0.0-alpha.26",
3
+ "version": "2.0.0-alpha.28",
4
4
  "description": "Interactive page building experience for Nuxt",
5
5
  "repository": "blokkli/editor",
6
6
  "type": "module",