Skip to content

Commit ebaacf1

Browse files
SteffenDEgithub-actions[bot]
authored andcommitted
Update assets
1 parent 457e477 commit ebaacf1

6 files changed

+71
-44
lines changed

priv/static/phoenix_live_view.cjs.js

+21-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

priv/static/phoenix_live_view.cjs.js.map

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

priv/static/phoenix_live_view.esm.js

+21-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

priv/static/phoenix_live_view.esm.js.map

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

priv/static/phoenix_live_view.js

+21-12
Original file line numberDiff line numberDiff line change
@@ -2831,21 +2831,28 @@ removing illegal node: "${(childNode.outerHTML || childNode.nodeValue).trim()}"
28312831
view.liveSocket.pushHistoryPatch(e, href, replace ? "replace" : "push", sourceEl);
28322832
},
28332833
exec_focus(e, eventType, phxEvent, view, sourceEl, el) {
2834-
window.requestAnimationFrame(() => aria_default.attemptFocus(el));
2834+
aria_default.attemptFocus(el);
2835+
window.requestAnimationFrame(() => {
2836+
window.requestAnimationFrame(() => aria_default.attemptFocus(el));
2837+
});
28352838
},
28362839
exec_focus_first(e, eventType, phxEvent, view, sourceEl, el) {
2837-
window.requestAnimationFrame(() => aria_default.focusFirstInteractive(el) || aria_default.focusFirst(el));
2840+
aria_default.focusFirstInteractive(el) || aria_default.focusFirst(el);
2841+
window.requestAnimationFrame(() => {
2842+
window.requestAnimationFrame(() => aria_default.focusFirstInteractive(el) || aria_default.focusFirst(el));
2843+
});
28382844
},
28392845
exec_push_focus(e, eventType, phxEvent, view, sourceEl, el) {
2840-
window.requestAnimationFrame(() => focusStack.push(el || sourceEl));
2846+
focusStack.push(el || sourceEl);
28412847
},
28422848
exec_pop_focus(_e, _eventType, _phxEvent, _view, _sourceEl, _el) {
2843-
window.requestAnimationFrame(() => {
2844-
const el = focusStack.pop();
2845-
if (el) {
2846-
el.focus();
2847-
}
2848-
});
2849+
const el = focusStack.pop();
2850+
if (el) {
2851+
el.focus();
2852+
window.requestAnimationFrame(() => {
2853+
window.requestAnimationFrame(() => el.focus());
2854+
});
2855+
}
28492856
},
28502857
exec_add_class(e, eventType, phxEvent, view, sourceEl, el, { names, transition, time, blocking }) {
28512858
this.addOrRemoveClasses(el, names, [], transition, time, view, blocking);
@@ -2919,11 +2926,13 @@ removing illegal node: "${(childNode.outerHTML || childNode.nodeValue).trim()}"
29192926
}
29202927
let onStart = () => {
29212928
this.addOrRemoveClasses(el, inStartClasses, outClasses.concat(outStartClasses).concat(outEndClasses));
2922-
let stickyDisplay = display || this.defaultDisplay(el);
2923-
dom_default.putSticky(el, "toggle", (currentEl) => currentEl.style.display = stickyDisplay);
2929+
const stickyDisplay = display || this.defaultDisplay(el);
29242930
window.requestAnimationFrame(() => {
29252931
this.addOrRemoveClasses(el, inClasses, []);
2926-
window.requestAnimationFrame(() => this.addOrRemoveClasses(el, inEndClasses, inStartClasses));
2932+
window.requestAnimationFrame(() => {
2933+
dom_default.putSticky(el, "toggle", (currentEl) => currentEl.style.display = stickyDisplay);
2934+
this.addOrRemoveClasses(el, inEndClasses, inStartClasses);
2935+
});
29272936
});
29282937
};
29292938
let onEnd = () => {

priv/static/phoenix_live_view.min.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)