The handler called evt.preventDefault() unconditionally, so auto-poll requests (hx-trigger="every 5s", no hx-confirm) caused an empty dialog to pop up every 5 seconds. Add an early return when evt.detail.question is falsy so only actual hx-confirm interactions are intercepted. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>