lion/packages/ui
Denilson Sá Maia ef7f16a51c fix(overlays): don't call _setupOverlayCtrl() in OverlayMixin if the component is not connected
In our application, there is a very complicated logic that creates a bunch of form fields based on some data. It's very complicated, we hate that logic; but it exists, it works, and it is being used in production.

Somewhere in that logic, under a very specific case, a datepicker form field is created, connected, and then immediately disconnected. Don't ask me why, I said it is complicated.

This commit fixes a bug in OverlayMixin. The `connectedCallback` calls `_setupOverlayCtrl()` asynchronously, after a `Promise.then()`. Thus, by the time this setup function is called, the component has already been disconnected (and `disconnectedCallback()` has already been called).

The fix is simple: don't try to setup the overlay if the component is no longer connected.
2025-07-26 15:05:49 +02:00
..
_legacy-changelogs feat: move all web pkgs into a single npm pkg @lion/ui 2022-10-31 11:15:03 +01:00
components fix(overlays): don't call _setupOverlayCtrl() in OverlayMixin if the component is not connected 2025-07-26 15:05:49 +02:00
exports fix: make web-test-runner using documentOrShadowRoot.activeElement debuggable 2024-11-21 09:01:13 +01:00
scripts fix(providence): use globby again 2025-03-20 10:29:39 +01:00
.gitignore feat: expose vscode custom-data 2023-06-08 17:22:58 +02:00
CHANGELOG.md Version Packages (#2540) 2025-07-17 16:47:11 +02:00
package.json fix(dedupe-mixin): resolve version conflict between v1 and v2 2025-07-26 13:02:39 +02:00
README.md chore: add README for lion/ui package 2023-02-28 15:18:09 +01:00
tsconfig-check-only.json chore: apply types-correct in ui pkg 2022-11-23 16:14:18 +01:00
tsconfig.json feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00