check contentElement exists - fixes #264 (#265)

This commit is contained in:
Simon McConnell 2021-05-09 07:47:57 +10:00 committed by GitHub
parent 1c45d0777a
commit 056d01cee7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ const VirtualizedLines = {
this.state.contentElement = this.el.querySelector("[data-content]");
if (!this.state.templateElement) {
if (!this.state.contentElement) {
throw new Error("VirtualizedLines must have a child with data-content");
}