Just a little tip for next time... try practising the "off" or "leave it" command. Your voice is faster than your body, and hopefully faster than your dog!
Layla used to always grab stuff I dropped too, but she's been great lately since she learned this command (thank goodness for puppy class!). I practise it CONSTANTLY. When I'm in the kitchen cooking, or doing dishes, or whatever, I take a little bag of cut-up carrots, or treats, or anything that she actually CAN have (just in case!) and every so often I'll drop one. I tell her "OFF" and if she stays away, she gets a treat