SteveSanderson/knockout — Issue #185: ko if: true in ko foreach: doesn't get removed 
Author: Enome
Created: 2011-10-28 17:30:14+00:00
State: open

The html between if: true doesn't get moved when the item in the array gets deleted. Can find a working example at: http://jsfiddle.net/pKjju/1/

Element

Extra element

remove

viewmodel = {
items : ko.observableArray([ 1, 2, 3 ]),

removeSelected : function(){
viewmodel.items.splice(1,1);
}
}

ko.applyBindings(viewmodel);