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

coreui / coreui-pro / 34790619290
94%

Build:
DEFAULT BRANCH: main
Ran 13 Sep 2026 11:46PM UTC
Jobs 1
Files 47
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

13 Sep 2026 11:45PM UTC coverage: 93.873% (+0.003%) from 93.87%
34790619290

push

github

web-flow
fix(Calendar,Rating): stop deferring a callback past dispose, stop stacking rating listeners (#1277)

Closes the PRO half of the dispose-leak entry; Sidebar, FocusTrap and Navigation
went in coreui#1191.

Calendar's `_updateCalendar` handed its callback to `setTimeout(callback, 1)`
with no handle kept. Nothing cancelled it, so `dispose()` could land between the
redraw and the callback, which then read fields the teardown had nulled. The
redraw is synchronous — `_createCalendar()` has already put the cells in the
document by the time it returns — so the callback runs inline now and the gap
is gone.

Rating rebuilt its markup in `update()` and `reset()` and called
`_addEventListeners()` each time. Those listeners are delegated on the host and
survive the rebuild, so every call stacked six more: after two updates one
change event fired the handler three times. The calls are gone; the constructor
registers them once, which is all that was ever needed.

Rating also never disposed the tooltips it creates per item. `_tooltip` holds
only the most recent one, so every earlier tooltip stayed instantiated against a
node that had been replaced. `_disposeTooltips()` walks the items and disposes
each, and runs from `update()`, `reset()` and a new `dispose()`.

Tests, each verified red beforehand: the calendar callback has already run when
`_updateCalendar` returns; one change event reaches the handler once after two
updates; a tooltip built for an item is gone once that item is replaced.

3924 of 4361 branches covered (89.98%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 2 files covered. (100.0%)

7275 of 7569 relevant lines covered (96.12%)

682.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 34790619290.1 13 Sep 2026 11:46PM UTC 47
93.87
GitHub Action Run
Source Files on build 34790619290
  • Tree
  • List 47
  • 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 #34790619290
  • 177275b8 on github
  • Prev Build on main (#34788785910)
  • Next Build on main (#34792864309)
  • 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