Skip to content

Commit

Permalink
Fix element type check in _onTap (#67)
Browse files Browse the repository at this point in the history
* Fix element type check in _onTap

* Fixes es6
  • Loading branch information
megheaiulian authored and nomego committed Jan 14, 2019
1 parent 2423d96 commit dfcb1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmoz-data-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@
return;
}
let inBetween = path.slice(path.indexOf(selectEl)),
ancestorNav = inBetween.find(e => e.is && e.is === this.is),
ancestorNav = inBetween.find(e => e && e.constructor && e.constructor.is === this.constructor.is),
select;

if (ancestorNav !== this) {
Expand Down

0 comments on commit dfcb1bf

Please sign in to comment.