MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / focusNext

Method focusNext

core/src/components/input-otp/input-otp.tsx:457–462  ·  view source on GitHub ↗

* Focuses the next input box.

(currentIndex: number)

Source from the content-addressed store, hash-verified

455 * Focuses the next input box.
456 */
457 private focusNext(currentIndex: number) {
458 const { inputRefs, length } = this;
459 if (currentIndex < length - 1) {
460 inputRefs[currentIndex + 1]?.focus();
461 }
462 }
463
464 /**
465 * Focuses the previous input box.

Callers 1

InputOTPClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected