Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion core-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,14 @@
return;
}

var model = n.templateInstance && n.templateInstance.model;
// in case the tap was on some nested template or element instance,
// find an instance generated with this particular element template
// using the fact that they all are siblings of this.template
while (n && n.parentNode !== this.template.parentNode) {
n = n.host ? n.host : n.parentNode;
}

var model = n && n.templateInstance && n.templateInstance.model;
if (model) {
var vi = model.index, pi = model.physicalIndex;
var data = this.data[vi], item = this._physicalItems[pi];
Expand Down