Event Delegation

Why use the capturing phase for this delegation?
document.addEventListener('click', e => {
  const dialog = e.target.closest('[role="dialog"]');
  if (!dialog) return;
  
  if (!dialog.contains(e.target)) {
    dialog.dispatchEvent(new CustomEvent('dismiss'));
  }
}, true);
Next Question (18/20)