I believe the electronics will be fine considering they are fairly close to an grill that has the ability to grill at 500°F.
Good other feedback above. The title threw my off though. “will my cocker cook itself?” I thought you had a issue with your cocker spaniel. :)