Skip to content

Commit

Permalink
Check for template existence
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-fix committed Jan 16, 2018
1 parent 1ba53dd commit 44e5db3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vaadin-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@
_openedChanged(opened) {
if (opened && !this._instance) {
this._contentTemplate = this.querySelector('template');

if (!this._contentTemplate) {
return;
}

const Templatizer = Polymer.Templatize.templatize(this._contentTemplate, this, {
instanceProps: {
detail: true,
Expand Down

0 comments on commit 44e5db3

Please sign in to comment.