@itrocks/list 0.3.1 → 0.3.2

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.
Files changed (2) hide show
  1. package/build.js +2 -2
  2. package/package.json +1 -1
package/build.js CHANGED
@@ -20,10 +20,10 @@ build('article[data-action="list"] > form > table.objects', table => {
20
20
  });
21
21
  table.addEventListener('click', event => {
22
22
  const element = event.target;
23
- if (!(element instanceof HTMLElement))
23
+ if ((element instanceof HTMLInputElement) || !(element instanceof HTMLElement))
24
24
  return;
25
25
  const cell = element.closest('table, th');
26
- if (!(cell instanceof HTMLTableCellElement) || !cell.classList.contains('select'))
26
+ if (!((cell instanceof HTMLTableCellElement) && cell.classList.contains('select')))
27
27
  return;
28
28
  const input = cell.querySelector('input[type=checkbox]');
29
29
  if (!input)
package/package.json CHANGED
@@ -72,5 +72,5 @@
72
72
  "build:front": "tsc -p esm/tsconfig.json && ../prepare-module/prepare-module.js esm"
73
73
  },
74
74
  "types": "./cjs/list.d.ts",
75
- "version": "0.3.1"
75
+ "version": "0.3.2"
76
76
  }