Trending
Levi McGranahan's Avatar

Levi McGranahan

@levimcg

Im a designer and front-end web developer working on design systems at Indiana University.

23
Followers
94
Following
3
Posts
12.11.2024
Joined
Posts Following

Latest posts by Levi McGranahan @levimcg

Ok, I’m going to start watching Andor again for the second time since November.

06.02.2025 01:04 👍 1 🔁 0 💬 0 📌 0

Right, but “escape hatch” implies there is a better “right” way to accomplish something. There’s no declarative way (e.g., an attribute that isn’t `autofocus`) to set focus on an element on the fly. Same for something like setting the .indeterminate property on a checkbox. Maybe that just me tho.

20.12.2024 00:43 👍 1 🔁 0 💬 3 📌 0

Definitely always felt this with the way refs are documented as some sort of anti pattern when they’re absolutely necessary if you want to build actually accessible stuff where you need to manage focus e.g., calling Element.focus()

20.12.2024 00:25 👍 3 🔁 0 💬 1 📌 0