Skip to content

Commit

Permalink
Update assets
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord authored and github-actions[bot] committed Jan 18, 2025
1 parent d94b69c commit 642a693
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 16 deletions.
18 changes: 16 additions & 2 deletions priv/static/phoenix_live_view.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions priv/static/phoenix_live_view.cjs.js.map

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions priv/static/phoenix_live_view.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions priv/static/phoenix_live_view.esm.js.map

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions priv/static/phoenix_live_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -1166,8 +1166,22 @@ removing illegal node: "${(childNode.outerHTML || childNode.nodeValue).trim()}"
mounted() {
this.focusStart = this.el.firstElementChild;
this.focusEnd = this.el.lastElementChild;
this.focusStart.addEventListener("focus", () => aria_default.focusLast(this.el));
this.focusEnd.addEventListener("focus", () => aria_default.focusFirst(this.el));
this.focusStart.addEventListener("focus", (e) => {
if (!e.relatedTarget || !this.el.contains(e.relatedTarget)) {
const nextFocus = e.target.nextElementSibling;
aria_default.attemptFocus(nextFocus) || aria_default.focusFirst(nextFocus);
} else {
aria_default.focusLast(this.el);
}
});
this.focusEnd.addEventListener("focus", (e) => {
if (!e.relatedTarget || !this.el.contains(e.relatedTarget)) {
const nextFocus = e.target.previousElementSibling;
aria_default.attemptFocus(nextFocus) || aria_default.focusLast(nextFocus);
} else {
aria_default.focusFirst(this.el);
}
});
this.el.addEventListener("phx:show-end", () => this.el.focus());
if (window.getComputedStyle(this.el).display !== "none") {
aria_default.focusFirst(this.el);
Expand Down
12 changes: 6 additions & 6 deletions priv/static/phoenix_live_view.min.js

Large diffs are not rendered by default.

0 comments on commit 642a693

Please sign in to comment.