• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

coreui / coreui-pro / 45855750784
97%
main: 94%

Build:
Build:
LAST BUILD BRANCH: fix/navigation-aria-current-v6
DEFAULT BRANCH: main
Ran 26 Nov 2026 04:09PM UTC
Jobs 1
Files 99
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Nov 2026 04:07PM UTC coverage: 96.822% (+0.01%) from 96.812%
45855750784

push

github

web-flow
feat(OTPInput): one input drawn as slots (#1903)

* feat(OTPInput): one input drawn as slots

The OTP input is now a single text field the page owns, laid transparently
over slots the plugin draws, in place of one input per character. Screen
readers announce one field with one name and value, and typing, selection,
undo, paste and autofill are the browser's own. Measured against the
per-character field in Chromium and Firefox, the single field keeps a digit
typed into a focused slot, keeps an IME composition and undoes a paste,
where the per-character field lost or split them.

Markup is `.otp > input.otp-input`; the input's maxlength sets the slots and
its name, required, disabled, readonly, placeholder and value attributes
carry the form behaviour. Options are type (numeric, alphanumeric, alpha),
length, groups, separator, mask, pasteTransformer, autoSubmit and
validationState. Beyond drawing the slots, this component:

- sends text inserted at once (insertText, replacement, drop, and the input
  fallback when beforeinput cannot be cancelled) through the paste rules, so
  "123 456" typed in one go, a code chosen after one digit and a code
  inserted into a full field all give the code;
- turns full-width digits from an input method into digits (NFKC);
- turns autocorrect and autocapitalize off, and keeps a masked field a
  password input;
- writes a pattern for the full length, so an incomplete code blocks the
  submit;
- throws a TypeError for the old markup and for an unknown type;
- repeats a one-character placeholder in every empty slot;
- fires change on a form reset, clear() and reset(), never complete or the
  auto-submit, and nothing on setValue();
- validates through FieldValidation, with the state on the .otp container
  and aria-invalid and the feedback on the input.

The OTP valid state the page gives no longer drops in a plain form when the
user leaves the code invalid: its :user-invalid check now sits under
[data-coreui-validate] only.... (continued)

8709 of 9216 branches covered (94.5%)

Branch coverage included in aggregate %.

312 of 321 new or added lines in 2 files covered. (97.2%)

2 existing lines in 1 file now uncovered.

14505 of 14760 relevant lines covered (98.27%)

2368.63 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
93.75
1.84% js/src/otp-input.ts

Coverage Regressions

Lines Coverage ∆ File
2
93.75
1.84% js/src/otp-input.ts
Jobs
ID Job ID Ran Files Coverage
1 45855750784.1 26 Nov 2026 04:09PM UTC 99
96.82
GitHub Action Run
Source Files on build 45855750784
  • Tree
  • List 99
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45855750784
  • d968b8ec on github
  • Prev Build on v6-dev (#45843611085)
  • Next Build on v6-dev (#45887892523)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc