Skip to content

Unable to get grabbed component #199

Open
@pringithub

Description

@pringithub

Hi -

I'd like to simply get the component that is being grabbed. In the readme, it says that that component will have a 'grabbed' attribute set.

When I run the following code (registering xbuttondown), I don't see the txt component changing, and in fact this code never runs.

const txt = document.getElementById("txt");
for (let item of items) {
    if (item.hasAttribute('grabbed')) {
        txt.setAttribute("value", item.id);
    }
}

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