Skip to content

arcgis-map web component shadow root is not implemented correctly #565

@jlczapski

Description

@jlczapski

IMPORTANT

  • My question is related to the samples and content within this repository. For all other issues, open a ticket with Esri Technical Support or post your question in the community forum.
  • I have checked for existing issues to avoid duplicates. If someone has already opened an issue for what you are experiencing, please add a 👍 reaction and comment as necessary to the existing issue instead of creating a new one. You can also refer to this repo's troubleshooting guide for hints and suggestions.

Actual behavior

The .shadowRoot property of the arcgis-map component refers to itself, rather than a ShadowRoot object. We discovered this when trying to use Playwright's codegen feature to build tests for our application using the new arcgis components.

This issue causes an infinite recursion error in Playwright's codegen tool. See comment here

Expected behavior

.shadowRoot property of an arcgis web component should return a ShadowRoot object, not the element itself.

Reproduction sample

https://github.com/jlczapski/arcgis-web-components

Reproduction steps

  1. git clone https://github.com/jlczapski/arcgis-web-components
  2. pnpm i
  3. pnpm dev
  4. Open browser
  5. Find arcgis-map components in devtools
  6. In console, $0.shadowRoot returns <arcgis-map item-id="e691172598f04ea8881cd2a4adaa45ba" zoom="4" hydrated="">...</arcgis-map>

Reproduction browser

Chrome 134 on Windows 11

Operating System (check https://whatsmyos.com)

  • OS: Windows 11 64-bit
  • Device: Dell Precision 3560

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