|
@@ -111,8 +111,8 @@ function addElementInLoopAfterCurrentEl(templateEl, currentEl) {
|
|
|
function lookAheadForMatchingKeyedElementAndMoveItIfFound(nextEl, currentKey) {
|
|
|
if (! nextEl) return
|
|
|
|
|
|
- // If the next El is a sibling template tag, we're done.
|
|
|
- if (nextEl.tagName.toLowerCase() === 'template') return
|
|
|
+ // If the next El isn't keyed, we can ignore it.
|
|
|
+ if (nextEl.__x_for_key === undefined) return
|
|
|
|
|
|
// If the the key's DO match, no need to look ahead.
|
|
|
if (nextEl.__x_for_key === currentKey) return nextEl
|