@neovici/cosmoz-omnitable 8.14.0 → 8.14.1

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/cosmoz-omnitable.js +19 -13
  2. package/package.json +1 -1
@@ -545,20 +545,26 @@ class Omnitable extends hauntedPolymer(useOmnitable)(mixin({ isEmpty }, translat
545
545
  value && close(); /* eslint-disable-line no-unused-expressions */
546
546
  };
547
547
  }
548
- onItemClick(e){
549
- const path = e.composedPath(),
550
- hasLinks = path.slice(0, path.indexOf(e.currentTarget))
551
- .find(e => e.matches?.('a'));
552
548
 
553
- this.dispatchEvent(new window.CustomEvent('omnitable-item-click', {
554
- bubbles: true,
555
- composed: true,
556
- detail: {
557
- item: e.model.item,
558
- index: e.model.index,
559
- hasLinks
560
- }
561
- }));
549
+ onItemClick(e) {
550
+ const composedPath = e.composedPath(),
551
+ path = composedPath.slice(0, composedPath.indexOf(e.currentTarget));
552
+
553
+ if (path.find((e) => e.matches?.('a, .checkbox, .expand'))) {
554
+ return;
555
+ }
556
+
557
+
558
+ this.dispatchEvent(
559
+ new window.CustomEvent('omnitable-item-click', {
560
+ bubbles: true,
561
+ composed: true,
562
+ detail: {
563
+ item: e.model.item,
564
+ index: e.model.index,
565
+ },
566
+ })
567
+ );
562
568
  }
563
569
  }
564
570
  customElements.define('cosmoz-omnitable', Omnitable);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-omnitable",
3
- "version": "8.14.0",
3
+ "version": "8.14.1",
4
4
  "description": "[![Build Status](https://travis-ci.org/Neovici/cosmoz-omnitable.svg?branch=master)](https://travis-ci.org/Neovici/cosmoz-omnitable)",
5
5
  "keywords": [
6
6
  "web-components"