Battery corrosion on painted parts

I know you have a battery tender on but you do not say which one. Battery tender brand name is very good. Now Harbor freight have 2 that are garbage and would do what happened to you. Their best one is the Viking maintainer.