@primer/behaviors 0.0.0-20241018180654 → 0.0.0-20241021181012
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.
package/dist/cjs/focus-zone.js
CHANGED
|
@@ -182,6 +182,7 @@ function focusZone(container, settings) {
|
|
|
182
182
|
}
|
|
183
183
|
activeDescendantControl === null || activeDescendantControl === void 0 ? void 0 : activeDescendantControl.removeAttribute('aria-activedescendant');
|
|
184
184
|
container.removeAttribute(hasActiveDescendantAttribute);
|
|
185
|
+
previouslyActiveElement === null || previouslyActiveElement === void 0 ? void 0 : previouslyActiveElement.removeAttribute(isActiveDescendantAttribute);
|
|
185
186
|
for (const item of container.querySelectorAll(`[${isActiveDescendantAttribute}]`)) {
|
|
186
187
|
item === null || item === void 0 ? void 0 : item.removeAttribute(isActiveDescendantAttribute);
|
|
187
188
|
}
|
package/dist/esm/focus-zone.mjs
CHANGED
|
@@ -180,6 +180,7 @@ function focusZone(container, settings) {
|
|
|
180
180
|
}
|
|
181
181
|
activeDescendantControl === null || activeDescendantControl === void 0 ? void 0 : activeDescendantControl.removeAttribute('aria-activedescendant');
|
|
182
182
|
container.removeAttribute(hasActiveDescendantAttribute);
|
|
183
|
+
previouslyActiveElement === null || previouslyActiveElement === void 0 ? void 0 : previouslyActiveElement.removeAttribute(isActiveDescendantAttribute);
|
|
183
184
|
for (const item of container.querySelectorAll(`[${isActiveDescendantAttribute}]`)) {
|
|
184
185
|
item === null || item === void 0 ? void 0 : item.removeAttribute(isActiveDescendantAttribute);
|
|
185
186
|
}
|