Fix bug with custom elements not propagating to enclosed elements