I just had this happen to me for the very first time and could not figure out why it was doing it. It was on the driver's side rear door and it kept going in and out each time I put my hand in to grab the handle. When I grabbed it and pulled, the door would not open at all, just kept trying to close the handle on my hand!
In the end, I just waited, walked away from the car until it cycled all the handles back in and walked back up to the car and the problem was solved.