Skip to content

Commit

Permalink
Clear invalid state when focused date is changed
Browse files Browse the repository at this point in the history
A focused date is always expected to be valid (the user should not be able to focus invalid dates).
  • Loading branch information
jouni authored and web-padawan committed Oct 14, 2019
1 parent e66e315 commit 4431ab9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vaadin-date-picker-mixin.html
Expand Up @@ -488,6 +488,7 @@
this.__userInputOccurred = true;
if (!this._ignoreFocusedDateChange && !this._noInput) {
this._inputValue = focusedDate ? formatDate(Vaadin.DatePickerHelper._extractDateParts(focusedDate)) : '';
this.invalid = false;
}
}

Expand Down

0 comments on commit 4431ab9

Please sign in to comment.