Skip to content

Dropdown breaks when iframe  #1875

@wilsonwong13

Description

@wilsonwong13

Running into an issue with using the dropdown component that is iframe. Running into this issue

  • Failed to read a named property 'addEventListener' from 'Window': Blocked a frame with origin "http://localhost:8080" from accessing a cross-origin frame

Most likely from this code - parent.addEventListener("click", pageClickHandler); - https://github.com/carbon-design-system/carbon-components-svelte/blob/16007759681015f3b58cd1df590403d6b695aa74/src/Dropdown/Dropdown.svelte#L163C6-L163C58

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions