Skip to content

indexOf() not working correctly in a changeFn #405

Open
@nthsense

Description

doc.list.indexOf("some value") always returns -1, where doc is the first argument of the changeFn passed to handle.change(). I did some digging into proxies.js and I can make no sense of what is going on in the indexOf() implementation there. Workaround for now is to copy the list first... doc.list.slice().indexOf("some value") gives me the correct index.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions