Dynamics of droplet breakup in a T-junction