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

Method _handleInputClick

packages/main/src/TimePicker.ts:628–643  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

626 }
627
628 _handleInputClick(e: MouseEvent) {
629 const target = e.target as HTMLElement;
630 if (this.open) {
631 return;
632 }
633
634 if (this._isMobileDevice && target && !target.hasAttribute("ui5-icon")) {
635 this.toggleInputsPopover();
636 }
637
638 const inputField = this._getInputField();
639
640 if (inputField) {
641 (inputField as HTMLInputElement).select();
642 }
643 }
644
645 _updateValueAndFireEvents(value: string, normalizeValue: boolean, eventsNames: Array<"input" | "change" | "value-changed">) {
646 const isInputEvent = eventsNames.includes("input");

Callers

nothing calls this directly

Calls 4

toggleInputsPopoverMethod · 0.95
_getInputFieldMethod · 0.95
hasAttributeMethod · 0.80
selectMethod · 0.80

Tested by

no test coverage detected