Hi Lu, I think you are incorrect in your statement. If I remember correctly that uncommanded flap retraction happened due a false overspeed warning from ADR 2 which commands the flaps to retract from CONF 1 + F to CONF 1.
That is solved by a revision in our MEL stating that should we despatch with ADR 2 inop, we must not use CONF 1+F for take-off. The other takeoff flap settings i.e. CONF 2 or CONF 3 are not affected by auto-retraction.
Rgds.