Skip to content

Commit

Permalink
Run an initial render in buildCallback (ampproject#19319)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvializ authored and Enriqe committed Nov 28, 2018
1 parent 15488bd commit d8c9965
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/amp-date-picker/0.1/amp-date-picker.js
Expand Up @@ -470,6 +470,7 @@ export class AmpDatePicker extends AMP.BaseElement {
this.element.classList.toggle(FULLSCREEN_CSS, this.fullscreen_);
this.element.appendChild(this.container_);
this.state_ = this.getInitialState_();
this.render(this.state_);
});
}

Expand Down

0 comments on commit d8c9965

Please sign in to comment.