MCPcopy Create free account
hub / github.com/UI5/webcomponents / _updateValueState

Method _updateValueState

packages/main/src/DatePicker.ts:617–628  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

615 }
616
617 _updateValueState() {
618 const valid = this._checkValueValidity(this.value);
619 const previousValueState = this.valueState;
620
621 this.valueState = valid ? ValueState.None : ValueState.Negative;
622
623 const eventPrevented = !this.fireDecoratorEvent("value-state-change", { valueState: this.valueState, valid });
624
625 if (eventPrevented) {
626 this.valueState = previousValueState;
627 }
628 }
629
630 getValueFromDisplayValue(value: string): string {
631 if (!this.getDisplayFormat().parse(value)) {

Callers 1

Calls 1

_checkValueValidityMethod · 0.95

Tested by

no test coverage detected