I try to prevent water from going into Coco's ears when I wash him but sorta holding them down and trying to not directly put water towards them. When I'm done washing him I towel dry him everywhere including his ears and try to swipe any traces of water on the inside of his ear. I also blow dry him all over in the end to make sure he's all dried up. It's been working for me so far...
Good luck