@primer/behaviors 0.0.0-202317225018 → 0.0.0-202317231443
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 +1 -2
- package/dist/esm/focus-zone.js +1 -2
- package/package.json +1 -1
package/dist/cjs/focus-zone.js
CHANGED
|
@@ -198,8 +198,7 @@ function focusZone(container, settings) {
|
|
|
198
198
|
element.setAttribute('tabindex', '-1');
|
|
199
199
|
}
|
|
200
200
|
if (!currentFocusedElement) {
|
|
201
|
-
|
|
202
|
-
updateFocusedElement(initialElement);
|
|
201
|
+
updateFocusedElement(getFirstFocusableElement());
|
|
203
202
|
}
|
|
204
203
|
}
|
|
205
204
|
function findInsertionIndex(elementsToInsert) {
|
package/dist/esm/focus-zone.js
CHANGED
|
@@ -195,8 +195,7 @@ export function focusZone(container, settings) {
|
|
|
195
195
|
element.setAttribute('tabindex', '-1');
|
|
196
196
|
}
|
|
197
197
|
if (!currentFocusedElement) {
|
|
198
|
-
|
|
199
|
-
updateFocusedElement(initialElement);
|
|
198
|
+
updateFocusedElement(getFirstFocusableElement());
|
|
200
199
|
}
|
|
201
200
|
}
|
|
202
201
|
function findInsertionIndex(elementsToInsert) {
|