I wouldn't say that there was a drastic personality shift. Rather, she realized that he was not actually flirting with her and would stop now that the misunderstanding was cleared. But since she clearly wants to keep the relationship rolling (rather than become a proper sibling), she is now taking the initiative. In a way, she is imitating him (or him as he looked in her eyes).