unpoly-rails 3.0.0.rc4 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/unpoly/unpoly-migrate.js +3 -3
- data/assets/unpoly/unpoly-migrate.min.js +1 -1
- data/assets/unpoly/unpoly.es6.js +7 -12
- data/assets/unpoly/unpoly.es6.min.js +1 -1
- data/assets/unpoly/unpoly.js +7 -12
- data/assets/unpoly/unpoly.min.js +1 -1
- data/lib/unpoly/rails/version.rb +1 -1
- metadata +4 -4
data/assets/unpoly/unpoly.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
/***/ (() => {
|
6
6
|
|
7
7
|
window.up = {
|
8
|
-
version: '3.0.0
|
8
|
+
version: '3.0.0'
|
9
9
|
};
|
10
10
|
|
11
11
|
|
@@ -9604,19 +9604,14 @@ up.form = (function () {
|
|
9604
9604
|
function disableContainer(container) {
|
9605
9605
|
let focusedElement = document.activeElement;
|
9606
9606
|
let focusFallback;
|
9607
|
-
let
|
9608
|
-
|
9609
|
-
|
9610
|
-
|
9611
|
-
focusFallback = focusedGroup;
|
9612
|
-
}
|
9613
|
-
else {
|
9614
|
-
focusFallback = container;
|
9607
|
+
let controls = [...findFields(container), ...findSubmitButtons(container)];
|
9608
|
+
for (let control of controls) {
|
9609
|
+
if (control === focusedElement) {
|
9610
|
+
focusFallback = findGroup(focusedElement);
|
9615
9611
|
}
|
9612
|
+
raiseDisableStack(control);
|
9616
9613
|
}
|
9617
|
-
|
9618
|
-
controls.forEach(raiseDisableStack);
|
9619
|
-
if (focusFallback && !focusFallback.contains(document.activeElement)) {
|
9614
|
+
if (focusFallback) {
|
9620
9615
|
up.focus(focusFallback, { force: true, preventScroll: true });
|
9621
9616
|
}
|
9622
9617
|
return function () {
|