consume a click event so the dialog doesn't auto close

Fixes https://github.com/dart-lang/spark/issues/2579 - introduced while fixing other issues. We need to consume click events on dialog buttons so that the overlay doesn't auto-close the dialog. We want to be able to control programmatically what happens based on the specific dialog.