@innovastudio/contentbuilder 1.5.71 → 1.5.72

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/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.71",
4
+ "version": "1.5.72",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -5304,7 +5304,7 @@ class Util {
5304
5304
  this.builder.uo.saveForUndo();
5305
5305
  let element = elm;
5306
5306
  let newelement;
5307
- if (!element.nextElementSibling) {
5307
+ if (!element.nextElementSibling && !element.closest('[data-subblock]')) {
5308
5308
  // active element is div.display > p.
5309
5309
  let activeCol = this.builder.activeCol;
5310
5310
  let current;
@@ -94298,7 +94298,11 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
94298
94298
  if (!col.getAttribute('data-click')) {
94299
94299
  // ON CLICK
94300
94300
  // Use bind() => https://www.w3schools.com/react/react_events.asp
94301
- col.addEventListener('click', this.handleCellClick.bind(this, col));
94301
+ // col.addEventListener('click', this.handleCellClick.bind(this, col));
94302
+ col.addEventListener('mousedown', this.handleCellClick.bind(this, col));
94303
+ col.addEventListener('touchstart', this.handleCellClick.bind(this, col), {
94304
+ passive: false
94305
+ });
94302
94306
 
94303
94307
  // ON KEYPRESS
94304
94308
  col.addEventListener('keydown', this.handleCellKeypress.bind(this));