Skip to content

Commit

Permalink
main - 2219b11 fix(material/timepicker): don't mark as touched when b…
Browse files Browse the repository at this point in the history
…lurred while dropdown is open (#30228)
  • Loading branch information
crisbeto committed Dec 27, 2024
1 parent 362f6e9 commit 94f0b45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion fesm2022/timepicker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,9 @@ class MatTimepickerInput {
if (value && this._isValid(value)) {
this._formatValue(value);
}
this._onTouched?.();
if (!this.timepicker().isOpen()) {
this._onTouched?.();
}
}
/** Handles the `keydown` event. */
_handleKeydown(event) {
Expand Down
2 changes: 1 addition & 1 deletion fesm2022/timepicker.mjs.map

Large diffs are not rendered by default.

0 comments on commit 94f0b45

Please sign in to comment.