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

Method _onfocusin

packages/main/src/MultiInput.ts:373–387  ·  view source on GitHub ↗

* @override

(e: FocusEvent)

Source from the content-addressed store, hash-verified

371 * @override
372 */
373 _onfocusin(e: FocusEvent) {
374 const inputDomRef = this.getInputDOMRef();
375 const wasTokenFocused = e.relatedTarget instanceof HTMLElement && e.relatedTarget.hasAttribute("ui5-token");
376
377 if (e.target === inputDomRef) {
378 if (wasTokenFocused) {
379 this.focused = true;
380 this.open = true;
381 this._inputIconFocused = false;
382 this._focusedAfterClear = false;
383 } else {
384 super._onfocusin(e);
385 }
386 }
387 }
388
389 onBeforeRendering() {
390 super.onBeforeRendering();

Callers

nothing calls this directly

Calls 2

getInputDOMRefMethod · 0.80
hasAttributeMethod · 0.80

Tested by

no test coverage detected