aloha-vue 1.0.5 → 1.0.6

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
3
  "description": "Project aloha",
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "author": "Ilia Brykin",
6
6
  "dependencies": {
7
7
  "@popperjs/core": "2.11.5",
@@ -28,7 +28,9 @@ export default function DragAndDropChildAPI(props, { emit }, { classOver = "" })
28
28
  };
29
29
 
30
30
  const dragenter = () => {
31
- root.value.classList.add(classOver);
31
+ if (root.value && root.value) {
32
+ root.value.classList.add(classOver);
33
+ }
32
34
  emit("dragenterParent", {
33
35
  columnIndex: columnIndex.value,
34
36
  });
@@ -42,7 +44,9 @@ export default function DragAndDropChildAPI(props, { emit }, { classOver = "" })
42
44
  };
43
45
 
44
46
  const dragleave = () => {
45
- root.value.classList.remove(classOver);
47
+ if (root.value && root.value) {
48
+ root.value.classList.remove(classOver);
49
+ }
46
50
  emit("dragleaveParent", {
47
51
  columnIndex: columnIndex.value,
48
52
  });
@@ -12,7 +12,7 @@ import {
12
12
  export default function RowActionsAPI(props) {
13
13
  const row = toRef(props, "row");
14
14
  const rowIndex = toRef(props, "rowIndex");
15
- const rowActions = inject("rowActions", []);
15
+ const rowActions = inject("rowActions");
16
16
 
17
17
  const isRowActionVisible = ({ rowAction }) => {
18
18
  if (rowAction.isHidden) {
@@ -28,8 +28,7 @@ export default function RowActionsAPI(props) {
28
28
  };
29
29
 
30
30
  const rowActionsFiltered = computed(() => {
31
- console.log("rowActions.length", rowActions.length);
32
- return filter(rowActions, rowAction => isRowActionVisible({ rowAction }));
31
+ return filter(rowActions.value, rowAction => isRowActionVisible({ rowAction }));
33
32
  });
34
33
 
35
34
  const isRowActionsDropdownVisible = computed(() => {