From what I understand, each click on Add button will add new effect and click on the Remove button should remove the last effect. In fact it removes all effects. I believe this is a bug.
I looked into code and I think it is caused by names collision since effect is both removeEffect's and lambda expression's parameter and in lambda expression it checks if effect's rootEffect is this same effect instead of what was given to removeEffect
I have this almost minimal example code:
From what I understand, each click on Add button will add new effect and click on the Remove button should remove the last effect. In fact it removes all effects. I believe this is a bug.
I looked into code and I think it is caused by names collision since
effect
is bothremoveEffect
's and lambda expression's parameter and in lambda expression it checks if effect'srootEffect
is this same effect instead of what was given toremoveEffect