@baleada/logic 0.24.11 → 0.24.12
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/lib/index.cjs +2 -2
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -2248,7 +2248,7 @@ function createFocusable(order, options = {}) {
|
|
|
2248
2248
|
if (focusable2)
|
|
2249
2249
|
return focusable2;
|
|
2250
2250
|
}
|
|
2251
|
-
current = current.parentElement;
|
|
2251
|
+
current = current.nextElementSibling || current.parentElement;
|
|
2252
2252
|
}
|
|
2253
2253
|
};
|
|
2254
2254
|
case "previous":
|
|
@@ -2263,7 +2263,7 @@ function createFocusable(order, options = {}) {
|
|
|
2263
2263
|
if (focusable)
|
|
2264
2264
|
return focusable;
|
|
2265
2265
|
}
|
|
2266
|
-
current = current.parentElement;
|
|
2266
|
+
current = current.previousElementSibling || current.parentElement;
|
|
2267
2267
|
}
|
|
2268
2268
|
};
|
|
2269
2269
|
}
|
package/lib/index.js
CHANGED
|
@@ -2246,7 +2246,7 @@ function createFocusable(order, options = {}) {
|
|
|
2246
2246
|
if (focusable2)
|
|
2247
2247
|
return focusable2;
|
|
2248
2248
|
}
|
|
2249
|
-
current = current.parentElement;
|
|
2249
|
+
current = current.nextElementSibling || current.parentElement;
|
|
2250
2250
|
}
|
|
2251
2251
|
};
|
|
2252
2252
|
case "previous":
|
|
@@ -2261,7 +2261,7 @@ function createFocusable(order, options = {}) {
|
|
|
2261
2261
|
if (focusable)
|
|
2262
2262
|
return focusable;
|
|
2263
2263
|
}
|
|
2264
|
-
current = current.parentElement;
|
|
2264
|
+
current = current.previousElementSibling || current.parentElement;
|
|
2265
2265
|
}
|
|
2266
2266
|
};
|
|
2267
2267
|
}
|