My 2 year old hates when I leave..

Je

So, I’ve been a stay at home mom her whole life. She usually never had a problem with me running to the grocery store or anything. For the past month though she’s been freaking out anytime I try to leave her with her dad. I can leave her with either grandmas and she doesn’t have an issue. But she will literally cry the whole time if I leave her with her dad and try to pull my jacket and keep me from putting it on/ hug my leg to keep me from leaving.. any pointers on how to help this?