He comes back to himself when her hand takes his again and she pulls him from the dance floor. They find some of their friends and have a drink, Hermione taking a shot of water so their news doesn't come out in the middle of a sweaty night club. Her hand never leaves his. Not until she drags him towards the bathrooms.