Ouch, having a kid complicates things but this one is quite simple.
She enjoyed using you for a long time, because you let her.
Instead of punishing bad behavior (leaving you), you rewarded her with your time and attention so you taught her that she can continue like that. Enjoying you for her...