Buscar
Estás en modo de exploración. debe iniciar sesión para usar MEMORY

   Inicia sesión para empezar


Por supuesto:

Lit / Web Components

» Iniciar este curso
(Practica preguntas similares gratis)
Pregunta:

Since events dispatched inside a shadowRoot are not visible outside that root, what can be done to make an event pass through the shadow DOM boundary?

Autor: John Pencola



Respuesta:

Set the "composed" property to "true". Note: It's common to pair composed with bubbles so that all nodes in the DOM tree can see the event:


0 / 5  (0 calificaciones)

1 answer(s) in total