Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

135
Vistas
Dropdown inside an IFrame closes when clicked outside the IFrame

I have a main program (some sort of testing control panel) that runs another program in an IFrame. In some sorts, this is similar to Storybook. The reason to have an IFrame is to provide some separation between the program that is tested (which may do what it wants with its DOM) and the host w/ the control panel = buttons & co.

I was surprised to observe that if I have in the IFrame a dropdown, and I click somewhere but OUTSIDE that IFrame => the dropdown closes. So practically the code in the IFrame has reacted to an event that happened in the parent window. (NOTE: the page in the IFrame comes from the same domain).

This is something that I don't bothers me. Any ideas why this happens and what can I do to avoid this? So I'd like the code in the IFrame to stop receiving/reacting events that correspond to actions that I do outside the IFrame.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda