@primer/behaviors 0.0.0-20251214174237 → 0.0.0-20251214174503

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -327,6 +327,7 @@ function focusZone(container, settings) {
327
327
  const controller = new AbortController();
328
328
  const signal = (_f = settings === null || settings === void 0 ? void 0 : settings.abortSignal) !== null && _f !== void 0 ? _f : controller.signal;
329
329
  signal.addEventListener('abort', () => {
330
+ observer.disconnect();
330
331
  endFocusManagement(...focusableElements);
331
332
  });
332
333
  let elementIndexFocusedByClick = undefined;
@@ -325,6 +325,7 @@ function focusZone(container, settings) {
325
325
  const controller = new AbortController();
326
326
  const signal = (_f = settings === null || settings === void 0 ? void 0 : settings.abortSignal) !== null && _f !== void 0 ? _f : controller.signal;
327
327
  signal.addEventListener('abort', () => {
328
+ observer.disconnect();
328
329
  endFocusManagement(...focusableElements);
329
330
  });
330
331
  let elementIndexFocusedByClick = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/behaviors",
3
- "version": "0.0.0-20251214174237",
3
+ "version": "0.0.0-20251214174503",
4
4
  "description": "Shared behaviors for JavaScript components",
5
5
  "type": "commonjs",
6
6
  "main": "dist/cjs/index.js",