Skip to content

V4.5.0 Chrome Extension Error #782

Open

Description

@LengYXin

In version 4.5.0, there will be an abnormality in this place. The previous version 4.4.6 worked fine.

  <Draggable
            bounds="body"
          >
Image

V4.5.0 Code

const rootNode = (((node.getRootNode()): any): Element);

V4.4.6 Code
boundNode = ownerDocument.querySelector(bounds);

Activity

  1. hiSandog commented on Jul 18, 2026

    @hiSandog

    The version boundary and source links are useful, but the actual exception text and extension environment are needed to identify the regression. Could you provide a minimal component, Chrome/extension version, and whether the draggable node lives in the extension page, popup, or content-script DOM? Testing bounds="body" when ownerDocument.body differs from the global document would be a focused compatibility case.

  2. STRML commented on Sep 27, 2026

    @STRML
    Collaborator

    This was generated by AI during triage.

    Triage Notes

    What we've established so far:

    • The regression is between 4.4.6 and 4.5.0, with bounds="body".
    • In current source, bounds resolves against node.ownerDocument and ownerDocument.defaultView, so a content script whose DOM differs from the global document is the likely suspect.

    What we still need from you (@LengYXin):

    • The exact error text and stack. The screenshot is cut off.
    • Does it still fail on react-draggable 4.7.2?
    • Where the draggable node lives: extension popup, options page, or content script injected into a page (and is it inside a shadow root?).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-infoWaiting on reporter for more information

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions