Skip to content

Make ember-thead teardown and getScale more forgiving - #1260

Open
Tobzzy wants to merge 2 commits into
Addepar:masterfrom
phorest:contrib/resize-guards
Open

Tobzzy wants to merge 2 commits into
Addepar:masterfrom
phorest:contrib/resize-guards

Conversation

@Tobzzy

@Tobzzy Tobzzy commented Nov 3, 2026

Copy link
Copy Markdown

Two small robustness fixes found while running ember-table in a production app.

  • ember-thead willDestroyElement: if didInsertElement throws before the ResizeSensor is created, teardown of the aborted render calls willDestroyElement with _tableResizeSensor still null. The resulting TypeError masks the original error. The teardown now checks for the sensor first.
  • getScale: when offsetHeight and the computed height disagree it threw. In apps where the mismatch is harmless this surfaced as noisy error-reporting events. It now logs a warning instead.

No behavior change on the happy path.

…ht disagree

The throw surfaces as noisy Sentry errors in apps where the mismatch is
harmless. Log a warning instead.
If didInsertElement throws before the ResizeSensor is created, teardown of
the aborted render calls willDestroyElement with _tableResizeSensor still
null and masks the original error with a TypeError.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant