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

Method _afterOpen

packages/main/src/MultiComboBox.ts:1582–1597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1580 }
1581
1582 _afterOpen() {
1583 const action = this.open ? "open" : "close";
1584
1585 if (!isPhone() && !this._isOpenedByKeyboard) {
1586 this._innerInput.focus();
1587 } else if (this._isOpenedByKeyboard) {
1588 this._itemToFocus?.focus();
1589 } else {
1590 this._getResponsivePopover().focus();
1591 }
1592
1593 this.fireDecoratorEvent(action);
1594
1595 this._previouslySelectedItems = this._getSelectedItems();
1596 this._isOpenedByKeyboard = false;
1597 }
1598
1599 /**
1600 * Retrieves a flat structure of all MultiComboBox items from the slotted nodes.

Callers

nothing calls this directly

Calls 4

_getResponsivePopoverMethod · 0.95
_getSelectedItemsMethod · 0.95
isPhoneFunction · 0.85
focusMethod · 0.45

Tested by

no test coverage detected