Keep going, water won't hurt it. Just make sure to dry it off and re-lube it afterwards.
I've personally ridden through creeks where the water has been well above my front dérailleur.
__________________
"the bus came by and I got on, that's when it all began...there was Cowboy Neal at the wheel of a bus to never-ever land."