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

Method _submitClick

packages/main/src/DateRangePicker.ts:308–316  ·  view source on GitHub ↗

* Handles clicking on the `submit` button, within the picker`s footer in mobile devices.

()

Source from the content-addressed store, hash-verified

306 * Handles clicking on the `submit` button, within the picker`s footer in mobile devices.
307 */
308 _submitClick() {
309 if (!this._startDateTimestamp || !this._endDateTimestamp) {
310 return;
311 }
312
313 const newValue = this._buildValue(this._startDateTimestamp, this._endDateTimestamp);
314 this._updateValueAndFireEvents(newValue, true, ["change", "value-changed"]);
315 this._togglePicker();
316 }
317
318 /**
319 * Handles clicking on the `cancel` button, within the picker`s footer,

Callers

nothing calls this directly

Calls 3

_buildValueMethod · 0.95
_togglePickerMethod · 0.45

Tested by

no test coverage detected