Focus on child name field when starting.

This commit is contained in:
Ian Gulliver
2015-12-27 10:17:15 -08:00
parent 68c88e8092
commit 194965961f

View File

@@ -331,6 +331,7 @@ BabyStats.prototype.buildLayout_ = function() {
this.childName_.placeholder = 'Child name'; this.childName_.placeholder = 'Child name';
this.childName_.addEventListener('input', this.checkOverlay_.bind(this)); this.childName_.addEventListener('input', this.checkOverlay_.bind(this));
this.container_.appendChild(this.childName_); this.container_.appendChild(this.childName_);
this.childName_.focus();
this.yourName_ = document.createElement('input'); this.yourName_ = document.createElement('input');
this.addCSSClass_(this.yourName_, 'babyStatsYourName'); this.addCSSClass_(this.yourName_, 'babyStatsYourName');