Skip to content

In beforeRemove callback, index is always 0 #2560

@marcovdb

Description

@marcovdb

When using the beforeRemove callback with the foreach binding, the supplied index parameter is always 0. Bug seems to have been introduced with KO 3.5.0 Beta; it wasn't present in 3.4.2.

See here for reproduction: https://codepen.io/gxzzin/pen/KKNPKeO

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions