Skip to content

context.emit does not remove wrappers #12

@saraedum

Description

@saraedum

In the graph-editor example, the following workaround is necessary, since the wrappers otherwise do not get removed from the list correctly:

     def stopdrag():
         nonlocal dragged
-        context.emit('dragged', dragged.value, pos.value)
+        context.emit('dragged', dragged.value, pos.value[dragged.value][0], pos.value[dragged.value][1])
         dragged.value = None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpyodideOnly affecting components whose frontend was written in Python.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions