MCPcopy Create free account
hub / github.com/angular/components / _onBlur

Function _onBlur

src/material/datepicker/datepicker-input-base.ts:364–371  ·  view source on GitHub ↗

Handles blur events on the input.

()

Source from the content-addressed store, hash-verified

362
363 /** Handles blur events on the input. */
364 _onBlur() {
365 // Reformat the input only if we have a valid value.
366 if (this.value) {
367 this._formatValue(this.value);
368 }
369
370 this._onTouched();
371 }
372
373 /** Formats a value and sets it on the input element. */
374 protected _formatValue(value: D | null) {

Callers

nothing calls this directly

Calls 2

_formatValueMethod · 0.80
_onTouchedMethod · 0.80

Tested by

no test coverage detected