Potty training question

Kathleen

My daughter is two and we have been potty training and she does great when she doesn’t have any underwear on or pull up, but once I put I underwear on her she pees her underwear. And she doesn’t seem to care. She knows to take them off but she’s treating it like a diaper. Any advice on how to transition to wearing underwear. Thanks 😊