Which brings an interesting observation: plenty of videos out there on floodings where people drive their cars and trucks half submerged in water. I guess you should not try that with EVs.
If anything, an EV is better in water. The risk is getting the water in the battery pack, but that would only happen if the vehicle was submersed for some time; the packs are sealed generally quite well. There is no air intake or exhaust on an EV, so as long as the wheels are still on the road, it should be OK from an electrical perspective.
On Tesla packs, water eventually gets into the pack via the rebreathers which equalise pressure in the pack. This only occurs when the water gets into the cabin, at which point other things are likely broken in the car.
Of course,
cars are not boats, and people are notoriously bad at estimating depth. In general, it's a bad idea to drive through any deep water unless you are absolutely certain of the depth.
https://youtu.be/watch?v=cBYFo6fXPvU