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

Method _ontouchend

packages/main/src/Button.ts:566–579  ·  view source on GitHub ↗
(e: TouchEvent)

Source from the content-addressed store, hash-verified

564 }
565
566 _ontouchend(e: TouchEvent) {
567 if (this.disabled || this.loading) {
568 e.preventDefault();
569 e.stopPropagation();
570 }
571
572 if (this.active) {
573 this._setActiveState(false);
574 }
575
576 if (activeButton) {
577 activeButton._setActiveState(false);
578 }
579 }
580
581 _onkeydown(e: KeyboardEvent) {
582 if (isShift(e) || isEscape(e)) {

Callers

nothing calls this directly

Calls 1

_setActiveStateMethod · 0.95

Tested by

no test coverage detected