Skip to content

Commit

Permalink
fix(virtual-repeat): use parentNode instead of parentElement on the i…
Browse files Browse the repository at this point in the history
…njected element

Template anchors are converted to comment anchors. Thus is the injected element a comment node which does not have parentElement in IE, instead parentNode should be used.

Fixes #4
  • Loading branch information
martingust committed Jul 19, 2015
1 parent c44f25e commit 66d05bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtual-repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class VirtualRepeat {

bind(executionContext){
this.executionContext = executionContext;
this.virtualScrollInner = this.element.parentElement;
this.virtualScrollInner = this.element.parentNode;
this.virtualScroll = this.virtualScrollInner.parentElement;
this.createScrollIndicator();
this.virtualScroll.style.overflow = 'hidden';
Expand Down

0 comments on commit 66d05bb

Please sign in to comment.