@innovastudio/contentbox 1.6.86 → 1.6.87

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.6.86",
4
+ "version": "1.6.87",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "types": "index.d.ts",
@@ -54,7 +54,7 @@
54
54
  "ws": "^8.13.0"
55
55
  },
56
56
  "dependencies": {
57
- "@innovastudio/contentbuilder": "^1.5.71",
57
+ "@innovastudio/contentbuilder": "^1.5.72",
58
58
  "js-beautify": "^1.14.0",
59
59
  "sortablejs": "^1.15.2"
60
60
  }
@@ -31693,7 +31693,7 @@ class Util$1 {
31693
31693
  this.builder.uo.saveForUndo();
31694
31694
  let element = elm;
31695
31695
  let newelement;
31696
- if (!element.nextElementSibling) {
31696
+ if (!element.nextElementSibling && !element.closest('[data-subblock]')) {
31697
31697
  // active element is div.display > p.
31698
31698
  let activeCol = this.builder.activeCol;
31699
31699
  let current;
@@ -120687,7 +120687,11 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
120687
120687
  if (!col.getAttribute('data-click')) {
120688
120688
  // ON CLICK
120689
120689
  // Use bind() => https://www.w3schools.com/react/react_events.asp
120690
- col.addEventListener('click', this.handleCellClick.bind(this, col));
120690
+ // col.addEventListener('click', this.handleCellClick.bind(this, col));
120691
+ col.addEventListener('mousedown', this.handleCellClick.bind(this, col));
120692
+ col.addEventListener('touchstart', this.handleCellClick.bind(this, col), {
120693
+ passive: false
120694
+ });
120691
120695
 
120692
120696
  // ON KEYPRESS
120693
120697
  col.addEventListener('keydown', this.handleCellKeypress.bind(this));