MCPcopy Create free account
hub / github.com/AddMoreScripts/hystModal / focusControl

Method focusControl

src/hystmodal.js:166–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 }
165
166 focusControl() {
167 const nodes = this.openedWindow.querySelectorAll(this._focusElements);
168 if (this.isOpened && this.starter) {
169 this.starter.focus();
170 } else if (nodes.length) nodes[0].focus();
171 }
172
173 focusCatcher(e) {
174 const nodes = this.openedWindow.querySelectorAll(this._focusElements);

Callers 2

openMethod · 0.95
_closeAfterTransitionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected