If an element is being morphed, then it can't contain direct modal
dialog, because "show-modal" moves the dialog into body, then a
duplicate dialog will be morphed into the element.
So, we need to use template-based modal dialog when morphing.
---------
Co-authored-by: silverwind <me@silverwind.io>