Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object prototype is lost on call to updateOnly #997

Open
dermotduffy opened this issue Dec 31, 2022 · 2 comments
Open

Object prototype is lost on call to updateOnly #997

dermotduffy opened this issue Dec 31, 2022 · 2 comments

Comments

@dermotduffy
Copy link

A call to updateOnly on an existing item appears to lose the object prototype associated with the data. This Chrome debugging screenshot should illustrate the issue:

visjs

@dermotduffy
Copy link
Author

Workaround is to remove then add:

Screenshot from 2022-12-31 14-25-30

@alexdeia
Copy link

alexdeia commented Mar 1, 2023

Also you can use just update method. See #1014 and #1015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants