mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-25 17:30:59 +00:00
566a574c0a
* Add handler for `phx:page-loading-stop` that focuses either the first `<h1>` child of `<main>`, or `<main>` directly if no child `<h1>` is present. Make this our focus target. * Cache original `tabindex` of target, if any, and assign it a temporary `tabindex1 of -1. * Focus the target. * After a long timeout, either restore the target's original `tabindex` or remove the temporary -1 value. Short timeouts didn't seem to perform the focus step. Neither did nested `requestAnimationFrame` calls. |
||
---|---|---|
.. | ||
app.js | ||
phoenix_live_view |