Skip to content

the class instance is converted to a regular object #630

@interk0t

Description

@interk0t

Hello! I use instances of a class that has a proxy object / reactive field ($state) in which all the important information about the element in the dnd grid (column sizes, etc.) and the problem is that when calling the onconsider function, my instance of the class turns into a regular object, losing the state field, which causes errors in the markup like
item.height -

runtime.js:239 Uncaught TypeError: Cannot read properties of undefined (reading 'height')

Image

The screenshot shows that the element that I started moving was replaced in the array from a class to a regular object, losing its state
How can I solve this without changing the structure of the element in the items array? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions