> is it the same than view.inner.lastElementChild.isPlaceholder ?

Sure is, probably clearer to use that instead.

> also, I'd put typed first in the condition, because it's faster to access

Agreed

> shouldn't we just preventDefault/stopPropagation on the click handler in the dialog.js file instead ?

Let's find out!