* Focuses the next input box.
(currentIndex: number)
| 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. |