Closed leoasis closed 8 years ago
Hi @leoasis, good catch! Thanks. Just pushed a fix to master and 0.6.x branches.
@gcanti thanks! I'm really impressed by the speed in which you address all the issues! Thanks a lot again and awesome job
Well, you helped me a lot with your detailed description, thanks again.
@gcanti for president!
I have a model that is a
t.struct
that contains a property oft.list
oft.struct
which in turn contains a property that is at.list
. So basically a list inside a struct inside a list inside a struct :PWhenever I add or remove an item in the nested list, the
onChange
callback for the form returns with akind
of undefined, which is incorrect and should beadd
orremove
respectively. This works fine with top level lists, but it fails when the list is inside a struct inside another list. I've tracked this to theonItemChange
function in theList
component, which doesn't take into account if the change is from a nested list, and completely discards thekind
.