is it the same than `view.inner.lastElementChild.isPlaceholder` ?
also, I'd put `typed` first in the condition, because it's faster to access

but more important: shouldn't we just preventDefault/stopPropagation on the click handler in the dialog.js file instead ?