News for hackers. Stuff that matters.
Re:How UI-driven state increases accidental complexity by T-hawk on Wednesday March 25, 2020 @11:13AM (#22685306)
Losing focus is itself a stateful change on a UI element caused by another UI element. It's just that the frontend platform like the browser or OS manages that shared state for you.
Re:How UI-driven state increases accidental complexity by _bxg1 on Wednesday March 25, 2020 @01:28PM (#22686656)
Yes, this is key. There are many cases like this (and CSS pseudo-classes, and the drag and drop API, etc.) where the browser platform gives you convenient ways of avoiding the problem. And certainly, take advantage of those where possible. But they don't eliminate the problem in the general sense.