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

palcarazm / bootstrap5-toggle / 20894187810
93%
v5: 93%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/commitlint/config-conventional-20.3.1
DEFAULT BRANCH: v5
Ran 11 Jan 2026 11:12AM UTC
Jobs 2
Files 6
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

11 Jan 2026 11:12AM UTC coverage: 93.203% (-0.02%) from 93.22%
20894187810

push

github

web-flow
fix(toggle): intercept input properties and restore descriptors on destroy (#262)

This update improves the BootstrapToggle library to properly handle
external changes to input properties (checked, disabled, readonly,
indeterminate) and ensures that original property descriptors are
restored when destroy() is called. This prevents errors like
"Cannot redefine property" during rerendering or reinitialization.

Additionally, a guard has been added to suppress internal sync loops
when apply() or update() triggers input changes, and form reset
events are now handled asynchronously using setTimeout to allow
proper state synchronization without blocking.

Extensive tests have been added to cover:
- intercepting input property changes
- form reset behavior
- preventing sync loops
- restoring native input descriptors after destroy
- ensuring rerender re-applies interception correctly

Fixes #261

277 of 318 branches covered (87.11%)

Branch coverage included in aggregate %.

42 of 43 new or added lines in 1 file covered. (97.67%)

436 of 447 relevant lines covered (97.54%)

51.88 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
95.36
-0.75% src/main/ts/BootstrapToggle.ts
Jobs
ID Job ID Ran Files Coverage
1 coverage-report-22.x - 20894187810.1 11 Jan 2026 11:13AM UTC 12
94.76
GitHub Action Run
2 coverage-report-24.x - 20894187810.2 11 Jan 2026 11:12AM UTC 12
94.76
GitHub Action Run
Source Files on build 20894187810
  • Tree
  • List 6
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #20894187810
  • baee1605 on github
  • Prev Build on develop/v5.2.0 (#20882852241)
  • Next Build on develop/v5.2.0 (#20894216433)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc