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

Method onSelectedDatesChange

packages/main/src/DatePicker.ts:1016–1022  ·  view source on GitHub ↗

* The user selected a new date in the calendar * @param e * @protected

(e: CustomEvent<CalendarSelectionChangeEventDetail>)

Source from the content-addressed store, hash-verified

1014 * @protected
1015 */
1016 onSelectedDatesChange(e: CustomEvent<CalendarSelectionChangeEventDetail>) {
1017 e.preventDefault();
1018 const newValue = e.detail.selectedValues && e.detail.selectedValues[0];
1019 this._updateValueAndFireEvents(newValue, true, ["change", "value-changed"]);
1020
1021 this._togglePicker();
1022 }
1023
1024 /**
1025 * The user clicked the "month" button in the header

Callers

nothing calls this directly

Calls 2

_togglePickerMethod · 0.95

Tested by

no test coverage detected