I don't think she's forgetting. It's just he's been building up a relation with her for a while. He started out with a bad one, which always kept her in mind of him. Now, he's gradually improving and getting to know him more. Thus, building a good relationship. So she's happy that he left the other girl for her. It's not an intentional thing, but subconscious moment if attraction.